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).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, skip
public 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 InputStream
IOException
public int read(byte[] b, int off, int len) throws IOException
read
in class InputStream
IOException
public int available() throws IOException
available
in class InputStream
IOException
public void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
close
in class InputStream
IOException
Copyright © 2011–2019 Asakusa Framework Team. All rights reserved.