public class UnfoldingReader
extends java.io.PushbackReader
$Id$ [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.| Constructor and Description |
|---|
UnfoldingReader(java.io.Reader in)
Creates a new unfolding reader instance.
|
UnfoldingReader(java.io.Reader in,
boolean relaxed) |
UnfoldingReader(java.io.Reader in,
int size) |
UnfoldingReader(java.io.Reader in,
int size,
boolean relaxed)
Creates a new unfolding reader instance.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getLinesUnfolded() |
int |
read() |
int |
read(char[] cbuf,
int off,
int len) |
public UnfoldingReader(java.io.Reader in)
in - the reader to unfold frompublic UnfoldingReader(java.io.Reader in,
int size)
in - reader source for datasize - the buffer sizepublic UnfoldingReader(java.io.Reader in,
boolean relaxed)
in - reader source for datarelaxed - indicates whether relaxed unfolding is enabledpublic UnfoldingReader(java.io.Reader in,
int size,
boolean relaxed)
in - a reader to read fromsize - the buffer sizerelaxed - specifies whether unfolding is relaxedpublic final int getLinesUnfolded()
public final int read()
throws java.io.IOException
read in class java.io.PushbackReaderjava.io.IOExceptionpublic int read(char[] cbuf,
int off,
int len)
throws java.io.IOException
read in class java.io.PushbackReaderjava.io.IOException