public class ChainingXmlMemoryParser extends ChainingXmlParser<ChainingXmlMemoryParser>
Biweekly.parseXml(String),
Biweekly.parseXml(Document)| Constructor and Description |
|---|
ChainingXmlMemoryParser(Document dom) |
ChainingXmlMemoryParser(String xml) |
| 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 ChainingXmlMemoryParser(String xml)
public ChainingXmlMemoryParser(Document dom)
public ICalendar first()
public List<ICalendar> all()
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.Copyright © 2013-2016 Michael Angstadt. All Rights Reserved.