public class CalendarOutputter extends AbstractOutputter
$Id$ [Apr 5, 2004]Writes an iCalendar model to an output stream.
DEFAULT_CHARSET, foldLength
Constructor and Description |
---|
CalendarOutputter()
Default constructor.
|
CalendarOutputter(boolean validating) |
CalendarOutputter(boolean validating,
int foldLength) |
Modifier and Type | Method and Description |
---|---|
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.
|
isValidating, setValidating
public CalendarOutputter()
public CalendarOutputter(boolean validating)
validating
- indicates whether to validate calendar when outputting to streampublic CalendarOutputter(boolean validating, int foldLength)
validating
- indicates whether to validate calendar when outputting to streamfoldLength
- maximum number of characters before a line is foldedpublic final void output(Calendar calendar, OutputStream out) throws IOException, ValidationException
calendar
- calendar to write to ouput streamout
- an output streamIOException
- thrown when unable to write to output streamValidationException
- where calendar validation failspublic final void output(Calendar calendar, Writer out) throws IOException, ValidationException
calendar
- calendar to write to writerout
- a writerIOException
- thrown when unable to write to writerValidationException
- where calendar validation fails