public static class Sort.ByteSequencesReader
extends java.lang.Object
implements java.io.Closeable
Sort.ByteSequencesWriter
.Constructor and Description |
---|
Sort.ByteSequencesReader(java.io.DataInput is) |
Sort.ByteSequencesReader(java.io.File file) |
public Sort.ByteSequencesReader(java.io.File file) throws java.io.IOException
java.io.IOException
public Sort.ByteSequencesReader(java.io.DataInput is)
public boolean read(BytesRef ref) throws java.io.IOException
BytesRef
. The internal
storage is resized if needed.false
if EOF occurred when trying to read
the header of the next sequence. Returns true
otherwise.java.io.EOFException
- if the file ends before the full sequence is read.java.io.IOException
public byte[] read() throws java.io.IOException
null
if EOF occurred before the next entry
could be read.java.io.EOFException
- if the file ends before the full sequence is read.java.io.IOException
read(BytesRef)
public void close() throws java.io.IOException
DataInput
if it is Closeable
.close
in interface java.io.Closeable
close
in interface java.lang.AutoCloseable
java.io.IOException