Class ReadableByteChannelForLinesMatchingPrefix
java.lang.Object
org.aksw.commons.io.binseach.ReadableByteChannelForLinesMatchingPrefix
- All Implemented Interfaces:
Closeable, AutoCloseable, Channel, ReadableByteChannel
public class ReadableByteChannelForLinesMatchingPrefix
extends Object
implements ReadableByteChannel
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Seekableprotected longprotected byteprotected longprotected BinSearchScanState -
Constructor Summary
ConstructorsConstructorDescriptionReadableByteChannelForLinesMatchingPrefix(Seekable channel, BinSearchScanState state) -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()booleanisOpen()static longnextKnownDelimPos(Seekable channel, byte delimiter, long currentDelimPos, BinSearchScanState state) intread(ByteBuffer dst)
-
Field Details
-
channel
-
state
-
delimiter
protected byte delimiter -
currentDelimPos
protected long currentDelimPos -
nextKnownDelimPos
protected long nextKnownDelimPos
-
-
Constructor Details
-
ReadableByteChannelForLinesMatchingPrefix
-
-
Method Details
-
read
- Specified by:
readin interfaceReadableByteChannel- Throws:
IOException
-
nextKnownDelimPos
public static long nextKnownDelimPos(Seekable channel, byte delimiter, long currentDelimPos, BinSearchScanState state) throws IOException - Throws:
IOException
-
isOpen
-
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceChannel- Specified by:
closein interfaceCloseable- Throws:
IOException
-