public class ReadableByteChannelForLinesMatchingPrefix extends Object implements ReadableByteChannel
| Modifier and Type | Field and Description |
|---|---|
protected Seekable |
channel |
protected long |
currentDelimPos |
protected byte |
delimiter |
protected long |
nextKnownDelimPos |
protected BinSearchScanState |
state |
| Constructor and Description |
|---|
ReadableByteChannelForLinesMatchingPrefix(Seekable channel,
BinSearchScanState state) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
boolean |
isOpen() |
static long |
nextKnownDelimPos(Seekable channel,
byte delimiter,
long currentDelimPos,
BinSearchScanState state) |
int |
read(ByteBuffer dst) |
protected Seekable channel
protected BinSearchScanState state
protected byte delimiter
protected long currentDelimPos
protected long nextKnownDelimPos
public ReadableByteChannelForLinesMatchingPrefix(Seekable channel, BinSearchScanState state)
public int read(ByteBuffer dst) throws IOException
read in interface ReadableByteChannelIOExceptionpublic static long nextKnownDelimPos(Seekable channel, byte delimiter, long currentDelimPos, BinSearchScanState state) throws IOException
IOExceptionpublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableclose in interface ChannelIOExceptionCopyright © 2020. All rights reserved.