public class LineReadingInputStream extends java.io.FilterInputStream implements LineReader
| Constructor and Description |
|---|
LineReadingInputStream(java.io.InputStream in) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
readLine(int maxLength,
int bufferSize,
boolean utf)
Read a \n or \r\n terminated line of UTF-8 or ISO-8859-1.
|
protected java.lang.String |
readLineWithoutMarking(int maxLength,
int bufferSize,
boolean utf) |
public java.lang.String readLine(int maxLength,
int bufferSize,
boolean utf)
throws java.io.IOException
readLine in interface LineReadermaxLength - The maximum length of a line. If a line is longer than this, we throw IOException rather
than keeping on reading it forever.bufferSize - The initial size of the read buffer.utf - If true, read as UTF-8, if false, read as ISO-8859-1.java.io.IOExceptionprotected java.lang.String readLineWithoutMarking(int maxLength,
int bufferSize,
boolean utf)
throws java.io.IOException
java.io.IOException