public final class LineFeedDelimitedInputStream extends InputStream
InputStream to provide only contents in the current split for line separated text.
This requires that each 0x0d byte in input always represents line feed (LF).InputSplitters| Constructor and Description |
|---|
LineFeedDelimitedInputStream(InputStream source,
long offset,
long length)
Creates a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
int |
available() |
void |
close() |
int |
read() |
int |
read(byte[] b,
int off,
int len) |
mark, markSupported, read, reset, skippublic LineFeedDelimitedInputStream(InputStream source, long offset, long length)
source - the source input streamoffset - the current stream position from the original head, in byteslength - the split length from the current stream position;
the split may become smaller if the stream does not have enough size,
and is continue until the last record end was appeared over this lengthpublic int read()
throws IOException
read in class InputStreamIOExceptionpublic int read(byte[] b,
int off,
int len)
throws IOException
read in class InputStreamIOExceptionpublic int available()
throws IOException
available in class InputStreamIOExceptionpublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableclose in class InputStreamIOExceptionCopyright © 2011–2018 Asakusa Framework Team. All rights reserved.