Package net.fortuna.ical4j.data
Class CalendarParserImpl
- java.lang.Object
-
- net.fortuna.ical4j.data.CalendarParserImpl
-
- All Implemented Interfaces:
CalendarParser
public class CalendarParserImpl extends Object implements CalendarParser
$Id$ Created [Nov 5, 2004]
The default implementation of a calendar parser.
-
-
Constructor Summary
Constructors Constructor Description CalendarParserImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidparse(InputStream in, ContentHandler handler)Parse the iCalendar data from the specified input stream.voidparse(Reader in, ContentHandler handler)Parse the iCalendar data from the specified reader.
-
-
-
Method Detail
-
parse
public final void parse(InputStream in, ContentHandler handler) throws IOException, ParserException
Parse the iCalendar data from the specified input stream.- Specified by:
parsein interfaceCalendarParser- Parameters:
in- an input stream from which to read iCalendar datahandler- the content handler to notify during parsing- Throws:
IOException- thrown when unable to read from the specified streamParserException- thrown if an error occurs during parsing
-
parse
public final void parse(Reader in, ContentHandler handler) throws IOException, ParserException
Parse the iCalendar data from the specified reader.- Specified by:
parsein interfaceCalendarParser- Parameters:
in- a reader from which to read iCalendar datahandler- the content handler to notify during parsing- Throws:
IOException- thrown when unable to read from the specified readerParserException- thrown if an error occurs during parsing
-
-