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,
java.io.OutputStream out)
Outputs an iCalender string to the specified output stream.
|
void |
output(Calendar calendar,
java.io.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, java.io.OutputStream out) throws java.io.IOException, ValidationException
calendar
- calendar to write to ouput streamout
- an output streamjava.io.IOException
- thrown when unable to write to output streamValidationException
- where calendar validation failspublic final void output(Calendar calendar, java.io.Writer out) throws java.io.IOException, ValidationException
calendar
- calendar to write to writerout
- a writerjava.io.IOException
- thrown when unable to write to writerValidationException
- where calendar validation fails