public class WhitespaceTrimmingBufferedReader
extends java.io.BufferedReader
Modifier and Type | Field and Description |
---|---|
protected char[] |
lineBuffer
Hold characters in current input line.
|
protected int |
lineLength
Length of current input line.
|
protected int |
lineOffset
Current offset in current input line.
|
protected char[] |
oneCharBuffer
Single character buffer.
|
Constructor and Description |
---|
WhitespaceTrimmingBufferedReader(java.io.Reader reader)
Wrap existing reader with a whitespace trimming reader.
|
protected char[] oneCharBuffer
protected char[] lineBuffer
protected int lineOffset
protected int lineLength
public WhitespaceTrimmingBufferedReader(java.io.Reader reader)
reader
- Reader to wrap.public int read() throws java.io.IOException
read
in class java.io.BufferedReader
java.io.IOException
- when an I/O error occurs.public int read(char[] buffer, int offset, int length) throws java.io.IOException
read
in class java.io.BufferedReader
buffer
- Destination buffer.offset
- Offset at which to start storing characters.length
- Maximum number of characters to read.java.io.IOException
- when an I/O error occurs.public java.lang.String readLine() throws java.io.IOException
readLine
in class java.io.BufferedReader
java.io.IOException
- when an I/O error occurs.