net.fortuna.ical4j.data
Class CalendarOutputter
AbstractOutputter
net.fortuna.ical4j.data.CalendarOutputter
public class CalendarOutputter
extends AbstractOutputter
$Id: CalendarOutputter.java,v 1.14 2008/12/28 15:00:45 fortuna Exp $ [Apr 5, 2004]
Writes an iCalendar model to an output stream.
void | output(Calendar calendar, OutputStream out) - Outputs an iCalender string to the specified output stream.
|
void | output(Calendar calendar, Writer out) - Outputs an iCalender string to the specified writer.
|
CalendarOutputter
public CalendarOutputter()
Default constructor.
CalendarOutputter
public CalendarOutputter(boolean validating)
validating
- indicates whether to validate calendar when outputting to stream
CalendarOutputter
public CalendarOutputter(boolean validating,
int foldLength)
validating
- indicates whether to validate calendar when outputting to streamfoldLength
- maximum number of characters before a line is folded
output
public final void output(Calendar calendar,
OutputStream out)
throws IOException,
ValidationException
Outputs an iCalender string to the specified output stream.
calendar
- calendar to write to ouput streamout
- an output stream
output
public final void output(Calendar calendar,
Writer out)
throws IOException,
ValidationException
Outputs an iCalender string to the specified writer.
calendar
- calendar to write to writerout
- a writer