ezvcard.io
Class FoldedLineReader
java.lang.Object
java.io.Reader
java.io.BufferedReader
ezvcard.io.FoldedLineReader
- All Implemented Interfaces:
- Closeable, Readable
public class FoldedLineReader
- extends BufferedReader
Automatically unfolds lines of text as they are read.
- Author:
- Michael Angstadt
|
Method Summary |
String |
readLine()
Reads the next line, unfolding it if necessary. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FoldedLineReader
public FoldedLineReader(Reader reader)
- Parameters:
reader - the reader object to wrap
FoldedLineReader
public FoldedLineReader(String text)
- Parameters:
text - the text to read
readLine
public String readLine()
throws IOException
- Reads the next line, unfolding it if necessary.
- Overrides:
readLine in class BufferedReader
- Returns:
- the next line or null if EOF
- Throws:
IOException - if there's a problem reading from the reader
Copyright © 2012-2013. All Rights Reserved.