public class ChainingXmlParser<T extends ChainingXmlParser<?>> extends Object
Biweekly.parseXml(InputStream)
,
Biweekly.parseXml(File)
,
Biweekly.parseXml(Reader)
Constructor and Description |
---|
ChainingXmlParser(Document dom) |
ChainingXmlParser(File file) |
ChainingXmlParser(InputStream in) |
ChainingXmlParser(Reader reader) |
ChainingXmlParser(String string) |
Modifier and Type | Method and Description |
---|---|
List<ICalendar> |
all()
Reads all iCalendar objects from the stream.
|
ICalendar |
first()
Reads the first iCalendar object from the stream.
|
T |
register(ICalComponentScribe<? extends ICalComponent> scribe)
Registers a component scribe.
|
T |
register(ICalPropertyScribe<? extends ICalProperty> scribe)
Registers a property scribe.
|
T |
warnings(List<List<String>> warnings)
Provides a list object that any parser warnings will be put into.
|
public ChainingXmlParser(String string)
public ChainingXmlParser(InputStream in)
public ChainingXmlParser(File file)
public ChainingXmlParser(Reader reader)
public ChainingXmlParser(Document dom)
public T register(ICalPropertyScribe<? extends ICalProperty> scribe)
scribe
- the scribepublic T register(ICalComponentScribe<? extends ICalComponent> scribe)
scribe
- the scribepublic T warnings(List<List<String>> warnings)
warnings
- the list object that will be populated with the warnings
of each parsed iCalendar object. Each element in the list is a list of
warnings for one parsed object. Therefore, the size of this list will be
equal to the number of parsed iCalendar objects. If an iCalendar object
does not have any warnings, then its warning list will be empty.public ICalendar first() throws IOException
IOException
- if there's an I/O problempublic List<ICalendar> all() throws IOException
IOException
- if there's an I/O problemCopyright © 2013-2016 Michael Angstadt. All Rights Reserved.