| java.lang.Object org.pnuts.nio.AbstractLineInputStream org.pnuts.nio.LineInputStream
Method Summary | |
protected int | fill(byte[] b, int offset, int size) Fills the buffer. | protected void | process(byte[] b, int offset, int length) Process a line. | public int | processAll(boolean includeNewLine) Process all lines.
Parameters: includeNewLine - if true newline code (\r|\n|\r\n) is appended. |
needToClose | protected boolean needToClose(Code) | | |
fill | protected int fill(byte[] b, int offset, int size) throws IOException(Code) | | Fills the buffer.
This method is called when LineInputStream needs more data.
|
process | protected void process(byte[] b, int offset, int length)(Code) | | Process a line.
Parameters: c - the char buffer that contains the current line. Parameters: offset - the offset of the buffer Parameters: length - the length of the current line |
processAll | public int processAll(boolean includeNewLine) throws IOException(Code) | | Process all lines.
Parameters: includeNewLine - if true newline code (\r|\n|\r\n) is appended. the number of lines processed |
|
|