Package net.fortuna.ical4j.data
Class DefaultContentHandler
- java.lang.Object
-
- net.fortuna.ical4j.data.DefaultContentHandler
-
- All Implemented Interfaces:
ContentHandler
public class DefaultContentHandler extends Object implements ContentHandler
-
-
Constructor Summary
Constructors Constructor 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)DefaultContentHandler(Consumer<Calendar> consumer, TimeZoneRegistry tzRegistry, ContentHandlerContext context)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidendCalendar()Triggers the end of handling a calendar.voidendComponent()voidendComponent(String name)Triggers the end of handling a component.voidendProperty(String name)Triggers the end of handling a property.ComponentBuilder<CalendarComponent>getComponentBuilder()voidparameter(String name, String value)Triggers the handling of a parameter.voidpropertyValue(String value)Triggers the handling of a property value.voidstartCalendar()Triggers the start of handling a calendar.voidstartComponent(String name)Triggers the start of handling a component.voidstartProperty(String name)Triggers the start of handling a property.
-
-
-
Constructor Detail
-
DefaultContentHandler
public DefaultContentHandler(Consumer<Calendar> consumer, TimeZoneRegistry tzRegistry)
-
DefaultContentHandler
@Deprecated public DefaultContentHandler(Consumer<Calendar> consumer, TimeZoneRegistry tzRegistry, Supplier<List<ParameterFactory<?>>> parameterFactorySupplier, Supplier<List<PropertyFactory<?>>> propertyFactorySupplier, Supplier<List<ComponentFactory<?>>> componentFactorySupplier)
- Parameters:
consumer-tzRegistry-parameterFactorySupplier-propertyFactorySupplier-componentFactorySupplier-
-
DefaultContentHandler
public DefaultContentHandler(Consumer<Calendar> consumer, TimeZoneRegistry tzRegistry, ContentHandlerContext context)
-
-
Method Detail
-
getComponentBuilder
public ComponentBuilder<CalendarComponent> getComponentBuilder()
-
endComponent
public void endComponent()
-
startCalendar
public void startCalendar()
Description copied from interface:ContentHandlerTriggers the start of handling a calendar.- Specified by:
startCalendarin interfaceContentHandler
-
endCalendar
public void endCalendar() throws IOExceptionDescription copied from interface:ContentHandlerTriggers the end of handling a calendar.- Specified by:
endCalendarin interfaceContentHandler- Throws:
IOException
-
startComponent
public void startComponent(String name)
Description copied from interface:ContentHandlerTriggers the start of handling a component.- Specified by:
startComponentin interfaceContentHandler- Parameters:
name- a component name
-
endComponent
public void endComponent(String name)
Description copied from interface:ContentHandlerTriggers the end of handling a component.- Specified by:
endComponentin interfaceContentHandler- Parameters:
name- a component name
-
startProperty
public void startProperty(String name)
Description copied from interface:ContentHandlerTriggers the start of handling a property.- Specified by:
startPropertyin interfaceContentHandler- Parameters:
name- a property name
-
propertyValue
public void propertyValue(String value)
Description copied from interface:ContentHandlerTriggers the handling of a property value.- Specified by:
propertyValuein interfaceContentHandler- Parameters:
value- a property value
-
endProperty
public void endProperty(String name) throws URISyntaxException, ParseException, IOException
Description copied from interface:ContentHandlerTriggers the end of handling a property.- Specified by:
endPropertyin interfaceContentHandler- Parameters:
name- a property name- Throws:
URISyntaxExceptionParseExceptionIOException
-
parameter
public void parameter(String name, String value) throws URISyntaxException
Description copied from interface:ContentHandlerTriggers the handling of a parameter.- Specified by:
parameterin interfaceContentHandler- Parameters:
name- a parameter namevalue- a parameter value- Throws:
URISyntaxException- where the parameter value is not a valid URI for applicable parameters
-
-