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()
ContentHandler
startCalendar
in interface ContentHandler
public void endCalendar()
ContentHandler
endCalendar
in interface ContentHandler
public void startComponent(String name)
ContentHandler
startComponent
in interface ContentHandler
name
- a component namepublic void endComponent(String name)
ContentHandler
endComponent
in interface ContentHandler
name
- a component namepublic void startProperty(String name)
ContentHandler
startProperty
in interface ContentHandler
name
- a property namepublic void propertyValue(String value)
ContentHandler
propertyValue
in interface ContentHandler
value
- a property valuepublic void endProperty(String name) throws URISyntaxException, IOException
ContentHandler
endProperty
in interface ContentHandler
name
- a property nameURISyntaxException
IOException
public void parameter(String name, String value) throws URISyntaxException
ContentHandler
parameter
in interface ContentHandler
name
- a parameter namevalue
- a parameter valueURISyntaxException
- where the parameter value is not a valid URI for applicable parameters