Top Fields Constructors Methods
net.fortuna.ical4j.data

public Class DefaultContentHandler

extends Object
implements ContentHandler
Class Inheritance
All Implemented Interfaces
net.fortuna.ical4j.data.ContentHandler
Imports
net.fortuna.ical4j.model.*, net.fortuna.ical4j.model.component.CalendarComponent, .Observance, .VTimeZone, net.fortuna.ical4j.model.parameter.TzId, net.fortuna.ical4j.util.Constants, org.slf4j.LoggerFactory, java.time.zone.ZoneRulesProvider, java.util.ArrayList, .LinkedList, .List, java.util.function.Consumer, .Supplier

Field Summary

Modifier and TypeField and Description
protected List<CalendarComponent>
protected List<Property>
protected final LinkedList<ComponentBuilder<Component>>
components

The current component builders.

private final Consumer<Calendar>
private final ContentHandlerContext
protected PropertyBuilder
private final TimeZoneRegistry

Constructor Summary

AccessConstructor and Description
public
public
public

Method Summary

Modifier and TypeMethod and Description
private void
private void
public void
endCalendar()

Implements net.fortuna.ical4j.data.ContentHandler.endCalendar.

Triggers the end of handling a calendar.

public void
public void
endComponent(String
a component name
name
)

Implements net.fortuna.ical4j.data.ContentHandler.endComponent.

Triggers the end of handling a component.

public void
endProperty(String
a property name
name
)

Implements net.fortuna.ical4j.data.ContentHandler.endProperty.

Triggers the end of handling a property.

public ComponentBuilder<Component>
public void
parameter(String
a parameter name
name
,
String
a parameter value
value
)

Implements net.fortuna.ical4j.data.ContentHandler.parameter.

Triggers the handling of a parameter.

public void
propertyValue(String
a property value
value
)

Implements net.fortuna.ical4j.data.ContentHandler.propertyValue.

Triggers the handling of a property value.

public void
startCalendar()

Implements net.fortuna.ical4j.data.ContentHandler.startCalendar.

Triggers the start of handling a calendar.

public void
startComponent(String
a component name
name
)

Implements net.fortuna.ical4j.data.ContentHandler.startComponent.

Triggers the start of handling a component.

public void
startProperty(String
a property name
name
)

Implements net.fortuna.ical4j.data.ContentHandler.startProperty.

Triggers the start of handling a property.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

calendarComponentsback to summary
protected List<CalendarComponent> calendarComponents
calendarPropertiesback to summary
protected List<Property> calendarProperties
componentsback to summary
protected final LinkedList<ComponentBuilder<Component>> components

The current component builders.

consumerback to summary
private final Consumer<Calendar> consumer
contextback to summary
private final ContentHandlerContext context
propertyBuilderback to summary
protected PropertyBuilder propertyBuilder
tzRegistryback to summary
private final TimeZoneRegistry tzRegistry

Constructor Detail

DefaultContentHandlerback to summary
public DefaultContentHandler(Consumer<Calendar> consumer, TimeZoneRegistry tzRegistry)
DefaultContentHandlerback to summary
public DefaultContentHandler(Consumer<Calendar> consumer, TimeZoneRegistry tzRegistry, Supplier<List<ParameterFactory<?>>> parameterFactorySupplier, Supplier<List<PropertyFactory<?>>> propertyFactorySupplier, Supplier<List<ComponentFactory<?>>> componentFactorySupplier)
Annotations
@Deprecated
DefaultContentHandlerback to summary
public DefaultContentHandler(Consumer<Calendar> consumer, TimeZoneRegistry tzRegistry, ContentHandlerContext context)

Method Detail

assertComponentback to summary
private void assertComponent(ComponentBuilder<?> component)
assertPropertyback to summary
private void assertProperty(PropertyBuilder property)
endCalendarback to summary
public void endCalendar()

Implements net.fortuna.ical4j.data.ContentHandler.endCalendar.

Doc from net.fortuna.ical4j.data.ContentHandler.endCalendar.

Triggers the end of handling a calendar.

Annotations
@Override
endComponentback to summary
public void endComponent()
endComponentback to summary
public void endComponent(String name)

Implements net.fortuna.ical4j.data.ContentHandler.endComponent.

Doc from net.fortuna.ical4j.data.ContentHandler.endComponent.

Triggers the end of handling a component.

Parameters
name:String

a component name

Annotations
@Override
endPropertyback to summary
public void endProperty(String name)

Implements net.fortuna.ical4j.data.ContentHandler.endProperty.

Doc from net.fortuna.ical4j.data.ContentHandler.endProperty.

Triggers the end of handling a property.

Parameters
name:String

a property name

Annotations
@Override
getComponentBuilderback to summary
public ComponentBuilder<Component> getComponentBuilder()
parameterback to summary
public void parameter(String name, String value)

Implements net.fortuna.ical4j.data.ContentHandler.parameter.

Doc from net.fortuna.ical4j.data.ContentHandler.parameter.

Triggers the handling of a parameter.

Parameters
name:String

a parameter name

value:String

a parameter value

Annotations
@Override
propertyValueback to summary
public void propertyValue(String value)

Implements net.fortuna.ical4j.data.ContentHandler.propertyValue.

Doc from net.fortuna.ical4j.data.ContentHandler.propertyValue.

Triggers the handling of a property value.

Parameters
value:String

a property value

Annotations
@Override
startCalendarback to summary
public void startCalendar()

Implements net.fortuna.ical4j.data.ContentHandler.startCalendar.

Doc from net.fortuna.ical4j.data.ContentHandler.startCalendar.

Triggers the start of handling a calendar.

Annotations
@Override
startComponentback to summary
public void startComponent(String name)

Implements net.fortuna.ical4j.data.ContentHandler.startComponent.

Doc from net.fortuna.ical4j.data.ContentHandler.startComponent.

Triggers the start of handling a component.

Parameters
name:String

a component name

Annotations
@Override
startPropertyback to summary
public void startProperty(String name)

Implements net.fortuna.ical4j.data.ContentHandler.startProperty.

Doc from net.fortuna.ical4j.data.ContentHandler.startProperty.

Triggers the start of handling a property.

Parameters
name:String

a property name

Annotations
@Override