public class FastLineReader extends Object implements Closeable
Constructor and Description |
---|
FastLineReader(InputStream in) |
Modifier and Type | Method and Description |
---|---|
boolean |
atEoln() |
void |
close() |
boolean |
eof() |
byte |
getByte() |
byte |
peekByte() |
int |
readToEndOfOutputBufferOrEoln(byte[] outputBuffer,
int startOutputIndex)
Read from input until input is exhausted, EOLN is seen, or output buffer is filled
|
boolean |
skipNewlines()
Advance over any EOLN chars (CR or LF)
|
public FastLineReader(InputStream in)
public boolean eof()
public boolean atEoln()
public boolean skipNewlines()
public void close()
close
in interface Closeable
close
in interface AutoCloseable
public byte getByte()
public byte peekByte()
public int readToEndOfOutputBufferOrEoln(byte[] outputBuffer, int startOutputIndex)
outputBuffer
- where to put bytes readstartOutputIndex
- where to start putting bytes read