public class FoldedLineReader extends BufferedReader
Constructor and Description |
---|
FoldedLineReader(Reader reader)
Creates a folded line reader.
|
FoldedLineReader(String text)
Creates a folded line reader.
|
Modifier and Type | Method and Description |
---|---|
Charset |
getEncoding()
Gets the character encoding of the reader.
|
int |
getLineNum()
Gets the starting line number of the last unfolded line that was read.
|
String |
readLine()
Reads the next unfolded line.
|
close, mark, markSupported, read, read, ready, reset, skip
public FoldedLineReader(Reader reader)
reader
- the reader object to wrappublic FoldedLineReader(String text)
text
- the text to readpublic int getLineNum()
public Charset getEncoding()
public String readLine() throws IOException
readLine
in class BufferedReader
IOException
- if there's a problem reading from the readerThis software is published under the BSD license. Copyright © 2003-${build.year}, CRIXP AG, Switzerland, All rights reserved. Use is subject to license terms.