Package com.inteligr8.nio
Class DelimitedReadableByteChannel
java.lang.Object
com.inteligr8.nio.DelimitedReadableByteChannel
- All Implemented Interfaces:
Closeable,AutoCloseable,Channel,ReadableByteChannel
-
Constructor Summary
ConstructorsConstructorDescriptionDelimitedReadableByteChannel(int bufferSize, ReadableByteChannel rbchannel, Charset charset, String... delimiters) DelimitedReadableByteChannel(ReadableByteChannel rbchannel, Charset charset, String... delimiters) -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()booleanisOpen()intread(Appendable output, String... additionalDelimiters) intread(ByteBuffer dst)
-
Constructor Details
-
DelimitedReadableByteChannel
public DelimitedReadableByteChannel(ReadableByteChannel rbchannel, Charset charset, String... delimiters) -
DelimitedReadableByteChannel
public DelimitedReadableByteChannel(int bufferSize, ReadableByteChannel rbchannel, Charset charset, String... delimiters)
-
-
Method Details
-
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceChannel- Specified by:
closein interfaceCloseable- Throws:
IOException
-
isOpen
public boolean isOpen() -
read
- Specified by:
readin interfaceReadableByteChannel- Throws:
IOException
-
read
- Throws:
IOException
-
getLastDelimiterRead
-