|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.fortuna.ical4j.data.CalendarBuilder
Parses and builds an iCalendar model from an input stream. Note that this class is not thread-safe.
Field Summary | |
protected Calendar |
calendar
|
protected Component |
component
|
protected Property |
property
|
protected Component |
subComponent
|
Constructor Summary | |
CalendarBuilder()
Default constructor. |
|
CalendarBuilder(CalendarParser parser)
Constructs a new calendar builder using the specified calendar parser. |
|
CalendarBuilder(CalendarParser parser,
TimeZoneRegistry registry)
Constructs a new instance using the specified parser and registry. |
|
CalendarBuilder(TimeZoneRegistry registry)
Constructs a new calendar builder using the specified timezone registry. |
Method Summary | |
Calendar |
build(InputStream in)
Builds an iCalendar model from the specified input stream. |
Calendar |
build(Reader in)
Builds an iCalendar model from the specified reader. |
Calendar |
build(UnfoldingReader uin)
Build an iCalendar model by parsing data from the specified reader. |
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. |
TimeZoneRegistry |
getRegistry()
Returns the timezone registry used in the construction of calendars. |
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. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected Calendar calendar
protected Component component
protected Component subComponent
protected Property property
Constructor Detail |
public CalendarBuilder()
public CalendarBuilder(CalendarParser parser)
parser
- a calendar parser used to parse calendar filespublic CalendarBuilder(TimeZoneRegistry registry)
public CalendarBuilder(CalendarParser parser, TimeZoneRegistry registry)
parser
- a calendar parser used to construct the calendarregistry
- a timezone registry used to retrieve timezones and
register additional timezone information found in the calendarMethod Detail |
public Calendar build(InputStream in) throws IOException, ParserException
in
-
IOException
ParserException
public Calendar build(Reader in) throws IOException, ParserException
UnfoldingReader
is applied to the specified
reader to ensure the data stream is correctly unfolded where
appropriate.
in
-
IOException
ParserException
public Calendar build(UnfoldingReader uin) throws IOException, ParserException
uin
- an unfolding reader to read data from
IOException
ParserException
public void endCalendar()
ContentHandler
endCalendar
in interface ContentHandler
public void endComponent(String name)
ContentHandler
endComponent
in interface ContentHandler
public void endProperty(String name)
ContentHandler
endProperty
in interface ContentHandler
public void parameter(String name, String value) throws URISyntaxException
ContentHandler
parameter
in interface ContentHandler
URISyntaxException
public void propertyValue(String value) throws URISyntaxException, ParseException, IOException
ContentHandler
propertyValue
in interface ContentHandler
URISyntaxException
ParseException
IOException
public void startCalendar()
ContentHandler
startCalendar
in interface ContentHandler
public void startComponent(String name)
ContentHandler
startComponent
in interface ContentHandler
public void startProperty(String name)
ContentHandler
startProperty
in interface ContentHandler
public final TimeZoneRegistry getRegistry()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |