Top Description Fields Constructors Methods
net.fortuna.ical4j.data

public Class CalendarOutputter

extends AbstractOutputter
Class Inheritance
Imports
net.fortuna.ical4j.model.Calendar, net.fortuna.ical4j.validate.ValidationException, org.slf4j.LoggerFactory, java.io.IOException, .OutputStream, .OutputStreamWriter, .Writer

$Id$ [Apr 5, 2004]
Writes an iCalendar model to an output stream.
Author
Ben Fortuna

Field Summary

Inherited from net.fortuna.ical4j.data.AbstractOutputter:
DEFAULT_CHARSETfoldLength

Constructor Summary

AccessConstructor and Description
public
CalendarOutputter()

Default constructor.

public
CalendarOutputter(final boolean
indicates whether to validate calendar when outputting to stream
validating
)

public
CalendarOutputter(final boolean
indicates whether to validate calendar when outputting to stream
validating
,
final int
maximum number of characters before a line is folded
foldLength
)

Method Summary

Modifier and TypeMethod and Description
public final void
output(final Calendar
calendar to write to ouput stream
calendar
,
final OutputStream
an output stream
out
)

Outputs an iCalender string to the specified output stream.

public final void
output(final Calendar
calendar to write to writer
calendar
,
final Writer
a writer
out
)

Outputs an iCalender string to the specified writer.

Inherited from net.fortuna.ical4j.data.AbstractOutputter:
isValidatingsetValidating

Constructor Detail

CalendarOutputterback to summary
public CalendarOutputter()

Default constructor.

CalendarOutputterback to summary
public CalendarOutputter(final boolean validating)
Parameters
validating:boolean

indicates whether to validate calendar when outputting to stream

CalendarOutputterback to summary
public CalendarOutputter(final boolean validating, final int foldLength)
Parameters
validating:boolean

indicates whether to validate calendar when outputting to stream

foldLength:int

maximum number of characters before a line is folded

Method Detail

outputback to summary
public final void output(final Calendar calendar, final OutputStream out) throws IOException, ValidationException

Outputs an iCalender string to the specified output stream.

Parameters
calendar:Calendar

calendar to write to ouput stream

out:OutputStream

an output stream

Exceptions
IOException:
thrown when unable to write to output stream
ValidationException:
where calendar validation fails
outputback to summary
public final void output(final Calendar calendar, final Writer out) throws IOException, ValidationException

Outputs an iCalender string to the specified writer.

Parameters
calendar:Calendar

calendar to write to writer

out:Writer

a writer

Exceptions
IOException:
thrown when unable to write to writer
ValidationException:
where calendar validation fails