public class DefaultContentHandler extends Object implements ContentHandler
| Constructor and Description |
|---|
DefaultContentHandler(Consumer<Calendar> consumer,
TimeZoneRegistry tzRegistry) |
DefaultContentHandler(Consumer<Calendar> consumer,
TimeZoneRegistry tzRegistry,
Supplier<List<ParameterFactory<?>>> parameterFactorySupplier,
Supplier<List<PropertyFactory<?>>> propertyFactorySupplier,
Supplier<List<ComponentFactory<?>>> componentFactorySupplier) |
| Modifier and Type | Method and Description |
|---|---|
void |
endCalendar()
Triggers the end of handling a calendar.
|
void |
endComponent(String name)
Triggers the end of handling a component.
|
void |
endProperty(String name)
Triggers the end of handling a property.
|
void |
parameter(String name,
String value)
Triggers the handling of a parameter.
|
void |
propertyValue(String value)
Triggers the handling of a property value.
|
void |
startCalendar()
Triggers the start of handling a calendar.
|
void |
startComponent(String name)
Triggers the start of handling a component.
|
void |
startProperty(String name)
Triggers the start of handling a property.
|
public DefaultContentHandler(Consumer<Calendar> consumer, TimeZoneRegistry tzRegistry)
public DefaultContentHandler(Consumer<Calendar> consumer, TimeZoneRegistry tzRegistry, Supplier<List<ParameterFactory<?>>> parameterFactorySupplier, Supplier<List<PropertyFactory<?>>> propertyFactorySupplier, Supplier<List<ComponentFactory<?>>> componentFactorySupplier)
public void startCalendar()
ContentHandlerstartCalendar in interface ContentHandlerpublic void endCalendar()
ContentHandlerendCalendar in interface ContentHandlerpublic void startComponent(String name)
ContentHandlerstartComponent in interface ContentHandlername - a component namepublic void endComponent(String name)
ContentHandlerendComponent in interface ContentHandlername - a component namepublic void startProperty(String name)
ContentHandlerstartProperty in interface ContentHandlername - a property namepublic void propertyValue(String value)
ContentHandlerpropertyValue in interface ContentHandlervalue - a property valuepublic void endProperty(String name) throws URISyntaxException, IOException
ContentHandlerendProperty in interface ContentHandlername - a property nameURISyntaxExceptionIOExceptionpublic void parameter(String name, String value) throws URISyntaxException
ContentHandlerparameter in interface ContentHandlername - a parameter namevalue - a parameter valueURISyntaxException - where the parameter value is not a valid URI for applicable parameters