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.IOExceptionpublic Sort.ByteSequencesReader(java.io.DataInput is)
public boolean read(org.apache.lucene.util.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.IOExceptionpublic 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.IOExceptionread(BytesRef)public void close()
throws java.io.IOException
DataInput if it is Closeable.close in interface java.io.Closeableclose in interface java.lang.AutoCloseablejava.io.IOException