public class UnfoldingReader extends 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
.in
Constructor and Description |
---|
UnfoldingReader(Reader in)
Creates a new unfolding reader instance.
|
UnfoldingReader(Reader in,
boolean relaxed) |
UnfoldingReader(Reader in,
int size) |
UnfoldingReader(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) |
close, mark, markSupported, ready, reset, skip, unread, unread, unread
public UnfoldingReader(Reader in)
in
- the reader to unfold frompublic UnfoldingReader(Reader in, int size)
in
- reader source for datasize
- the buffer sizepublic UnfoldingReader(Reader in, boolean relaxed)
in
- reader source for datarelaxed
- indicates whether relaxed unfolding is enabledpublic UnfoldingReader(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 IOException
read
in class PushbackReader
IOException
public int read(char[] cbuf, int off, int len) throws IOException
read
in class PushbackReader
IOException