net.fortuna.ical4j.data

Class 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.

Constructor Summary

CalendarOutputter()
Default constructor.
CalendarOutputter(boolean validating)
CalendarOutputter(boolean validating, int foldLength)

Method Summary

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.

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 stream
foldLength - 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 stream
out - an output stream

output

public final void output(Calendar calendar,
                         Writer out)
            throws IOException,
                   ValidationException
Outputs an iCalender string to the specified writer.
Parameters:
calendar - calendar to write to writer
out - a writer