java.lang.Object
net.fortuna.ical4j.data.AbstractOutputter
net.fortuna.ical4j.data.CalendarOutputter
$Id$ [Apr 5, 2004]Writes an iCalendar model to an output stream.
-
Field Summary
Fields inherited from class net.fortuna.ical4j.data.AbstractOutputter
DEFAULT_CHARSET, foldLength
-
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor.CalendarOutputter
(boolean validating) CalendarOutputter
(boolean validating, int foldLength) -
Method Summary
Methods inherited from class net.fortuna.ical4j.data.AbstractOutputter
isValidating, setValidating
-
Constructor Details
-
CalendarOutputter
public CalendarOutputter()Default constructor. -
CalendarOutputter
public CalendarOutputter(boolean validating) - Parameters:
validating
- indicates whether to validate calendar when outputting to stream
-
CalendarOutputter
public CalendarOutputter(boolean validating, int foldLength) - Parameters:
validating
- indicates whether to validate calendar when outputting to streamfoldLength
- maximum number of characters before a line is folded
-
-
Method Details
-
output
public final void output(Calendar calendar, OutputStream out) throws IOException, ValidationException Outputs an iCalender string to the specified output stream.- Parameters:
calendar
- calendar to write to ouput streamout
- an output stream- Throws:
IOException
- thrown when unable to write to output streamValidationException
- where calendar validation fails
-
output
Outputs an iCalender string to the specified writer.- Parameters:
calendar
- calendar to write to writerout
- a writer- Throws:
IOException
- thrown when unable to write to writerValidationException
- where calendar validation fails
-