public static class Biweekly.ParserChainTextReader extends Object
Modifier and Type | Method and Description |
---|---|
List<ICalendar> |
all()
Reads all iCalendar objects from the data stream.
|
Biweekly.ParserChainTextReader |
caretDecoding(boolean enable)
Sets whether the reader will decode parameter values that use
circumflex accent encoding (enabled by default).
|
ICalendar |
first()
Reads the first iCalendar object from the data stream.
|
Biweekly.ParserChainTextReader |
register(ICalComponentScribe<? extends ICalComponent> scribe)
Registers a component scribe.
|
Biweekly.ParserChainTextReader |
register(ICalPropertyScribe<? extends ICalProperty> scribe)
Registers a property scribe.
|
Biweekly.ParserChainTextReader |
warnings(List<List<String>> warnings)
Provides a list for putting the parser warnings into.
|
public Biweekly.ParserChainTextReader register(ICalPropertyScribe<? extends ICalProperty> scribe)
scribe
- the scribepublic Biweekly.ParserChainTextReader register(ICalComponentScribe<? extends ICalComponent> scribe)
scribe
- the scribepublic Biweekly.ParserChainTextReader warnings(List<List<String>> warnings)
warnings
- the list object to populate (it is a
"list of lists"--each parsed ICalendar
object has its own
warnings list)public Biweekly.ParserChainTextReader caretDecoding(boolean enable)
enable
- true to use circumflex accent decoding, false not toICalRawReader.setCaretDecodingEnabled(boolean)
public ICalendar first() throws IOException
IOException
- if there a problem reading from the data streampublic List<ICalendar> all() throws IOException
IOException
- if there's a problem reading from the data streamCopyright © 2013-2015 Michael Angstadt. All Rights Reserved.