public class DefaultContentHandler extends java.lang.Object implements ContentHandler
Constructor and Description |
---|
DefaultContentHandler(java.util.function.Consumer<Calendar> consumer,
TimeZoneRegistry tzRegistry) |
DefaultContentHandler(java.util.function.Consumer<Calendar> consumer,
TimeZoneRegistry tzRegistry,
java.util.function.Supplier<java.util.List<ParameterFactory<?>>> parameterFactorySupplier,
java.util.function.Supplier<java.util.List<PropertyFactory<?>>> propertyFactorySupplier,
java.util.function.Supplier<java.util.List<ComponentFactory<?>>> componentFactorySupplier) |
Modifier and Type | Method and Description |
---|---|
void |
endCalendar()
Triggers the end of handling a calendar.
|
void |
endComponent(java.lang.String name)
Triggers the end of handling a component.
|
void |
endProperty(java.lang.String name)
Triggers the end of handling a property.
|
void |
parameter(java.lang.String name,
java.lang.String value)
Triggers the handling of a parameter.
|
void |
propertyValue(java.lang.String value)
Triggers the handling of a property value.
|
void |
startCalendar()
Triggers the start of handling a calendar.
|
void |
startComponent(java.lang.String name)
Triggers the start of handling a component.
|
void |
startProperty(java.lang.String name)
Triggers the start of handling a property.
|
public DefaultContentHandler(java.util.function.Consumer<Calendar> consumer, TimeZoneRegistry tzRegistry)
public DefaultContentHandler(java.util.function.Consumer<Calendar> consumer, TimeZoneRegistry tzRegistry, java.util.function.Supplier<java.util.List<ParameterFactory<?>>> parameterFactorySupplier, java.util.function.Supplier<java.util.List<PropertyFactory<?>>> propertyFactorySupplier, java.util.function.Supplier<java.util.List<ComponentFactory<?>>> componentFactorySupplier)
public void startCalendar()
ContentHandler
startCalendar
in interface ContentHandler
public void endCalendar() throws java.io.IOException
ContentHandler
endCalendar
in interface ContentHandler
java.io.IOException
public void startComponent(java.lang.String name)
ContentHandler
startComponent
in interface ContentHandler
name
- a component namepublic void endComponent(java.lang.String name)
ContentHandler
endComponent
in interface ContentHandler
name
- a component namepublic void startProperty(java.lang.String name)
ContentHandler
startProperty
in interface ContentHandler
name
- a property namepublic void propertyValue(java.lang.String value)
ContentHandler
propertyValue
in interface ContentHandler
value
- a property valuepublic void endProperty(java.lang.String name) throws java.net.URISyntaxException, java.text.ParseException, java.io.IOException
ContentHandler
endProperty
in interface ContentHandler
name
- a property namejava.net.URISyntaxException
java.text.ParseException
java.io.IOException
public void parameter(java.lang.String name, java.lang.String value) throws java.net.URISyntaxException
ContentHandler
parameter
in interface ContentHandler
name
- a parameter namevalue
- a parameter valuejava.net.URISyntaxException
- where the parameter value is not a valid URI for applicable parameters