|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.fortuna.ical4j.data.CalendarBuilder
public class CalendarBuilder
Parses and builds an iCalendar model from an input stream. Note that this class is not thread-safe.
$Id$ Created: Apr 5, 2004
Field Summary | |
---|---|
protected Calendar |
calendar
The calendar instance created by the builder. |
protected Component |
component
The current component instance created by the builder. |
protected Property |
property
The current property instance created by the builder. |
protected Component |
subComponent
The current sub-component instance created by the builder. |
Constructor Summary | |
---|---|
CalendarBuilder()
Default constructor. |
|
CalendarBuilder(CalendarParser parser)
Constructs a new calendar builder using the specified calendar parser. |
|
CalendarBuilder(CalendarParser parser,
PropertyFactoryRegistry propertyFactoryRegistry,
ParameterFactoryRegistry parameterFactoryRegistry,
TimeZoneRegistry tzRegistry)
|
|
CalendarBuilder(CalendarParser parser,
TimeZoneRegistry tzRegistry)
Constructs a new instance using the specified parser and registry. |
|
CalendarBuilder(TimeZoneRegistry tzRegistry)
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. |
TimeZoneRegistry |
getRegistry()
Returns the timezone registry used in the construction of calendars. |
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 tzRegistry)
tzRegistry
- a timezone registry to populate with discovered timezonespublic CalendarBuilder(CalendarParser parser, TimeZoneRegistry tzRegistry)
parser
- a calendar parser used to construct the calendartzRegistry
- a timezone registry used to retrieve TimeZone
s and
register additional timezone information found
in the calendarpublic CalendarBuilder(CalendarParser parser, PropertyFactoryRegistry propertyFactoryRegistry, ParameterFactoryRegistry parameterFactoryRegistry, TimeZoneRegistry tzRegistry)
parser
- a custom calendar parserpropertyFactoryRegistry
- registry for non-standard property factoriesparameterFactoryRegistry
- registry for non-standard parameter factoriestzRegistry
- a custom timezone registryMethod Detail |
---|
public Calendar build(InputStream in) throws IOException, ParserException
in
- an input stream to read calendar data from
IOException
- where an error occurs reading data from the specified stream
ParserException
- where an error occurs parsing data from the streampublic 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
- a reader to read calendar data from
IOException
- where an error occurs reading data from the specified reader
ParserException
- where an error occurs parsing data from the readerpublic Calendar build(UnfoldingReader uin) throws IOException, ParserException
uin
- an unfolding reader to read data from
IOException
- where an error occurs reading data from the specified reader
ParserException
- where an error occurs parsing data from the readerpublic final TimeZoneRegistry getRegistry()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |