public static class Biweekly.ParserChainJsonReader extends Object
Modifier and Type | Method and Description |
---|---|
List<ICalendar> |
all()
Reads all iCalendar objects from the data stream.
|
ICalendar |
first()
Reads the first iCalendar object from the data stream.
|
Biweekly.ParserChainJsonReader |
register(ICalComponentScribe<? extends ICalComponent> scribe)
Registers a component scribe.
|
Biweekly.ParserChainJsonReader |
register(ICalPropertyScribe<? extends ICalProperty> scribe)
Registers a property scribe.
|
Biweekly.ParserChainJsonReader |
warnings(List<List<String>> warnings)
Provides a list for putting the parser warnings into.
|
public Biweekly.ParserChainJsonReader register(ICalPropertyScribe<? extends ICalProperty> scribe)
scribe
- the scribepublic Biweekly.ParserChainJsonReader register(ICalComponentScribe<? extends ICalComponent> scribe)
scribe
- the scribepublic Biweekly.ParserChainJsonReader 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 ICalendar first() throws IOException
JCalParseException
- if the jCal syntax is incorrect (the JSON
syntax may be valid, but it is not in the correct jCal format).JsonParseException
- if the JSON syntax is incorrectIOException
- if there a problem reading from the data streampublic List<ICalendar> all() throws IOException
JCalParseException
- if the jCal syntax is incorrect (the JSON
syntax may be valid, but it is not in the correct jCal format).JsonParseException
- if the JSON syntax is incorrectIOException
- if there's a problem reading from the data streamCopyright © 2013-2015 Michael Angstadt. All Rights Reserved.