net.fortuna.ical4j.data
Class UnfoldingReader
PushbackReader
net.fortuna.ical4j.data.UnfoldingReader
public class UnfoldingReader
extends PushbackReader
$Id: UnfoldingReader.java,v 1.27 2008/12/16 12:34:54 fortuna Exp $ [06-Apr-2004]
A reader which performs iCalendar unfolding as it reads. Note that unfolding rules may be "relaxed" to allow
unfolding of non-conformant *.ics files. By specifying the system property "ical4j.unfolding.relaxed=true" iCalendar
files created with Mozilla Calendar/Sunbird may be correctly unfolded.
To wrap this reader with a BufferedReader
you must ensure you specify an identical buffer size
to that used in the BufferedReader
.
UnfoldingReader
public UnfoldingReader(Reader in)
Creates a new unfolding reader instance. Relaxed unfolding flag is read from system property.
in
- the reader to unfold from
UnfoldingReader
public UnfoldingReader(Reader in,
boolean relaxed)
UnfoldingReader
public UnfoldingReader(Reader in,
int size)
UnfoldingReader
public UnfoldingReader(Reader in,
int size,
boolean relaxed)
Creates a new unfolding reader instance.
in
- a reader to read fromrelaxed
- specifies whether unfolding is relaxed
getLinesUnfolded
public final int getLinesUnfolded()
- number of lines unfolded so far while reading
read
public final int read()
throws IOException
java.io.PushbackReader.read()
read
public int read(char[] cbuf,
int off,
int len)
throws IOException
java.io.PushbackReader.read(char[], int, int)