ezvcard.io
Class FoldedLineReader

java.lang.Object
  extended by java.io.Reader
      extended by java.io.BufferedReader
          extended by 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

Field Summary
 
Fields inherited from class java.io.Reader
lock
 
Constructor Summary
FoldedLineReader(Reader reader)
           
FoldedLineReader(String text)
           
 
Method Summary
 String readLine()
          Reads the next line, unfolding it if necessary.
 
Methods inherited from class java.io.BufferedReader
close, mark, markSupported, read, read, ready, reset, skip
 
Methods inherited from class java.io.Reader
read, read
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FoldedLineReader

public FoldedLineReader(Reader reader)
Parameters:
reader - the reader object to wrap

FoldedLineReader

public FoldedLineReader(String text)
Parameters:
text - the text to read
Method Detail

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.