|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectbiweekly.Biweekly.WriterChainText
public static class Biweekly.WriterChainText
Chainer class for writing to plain text iCalendar data streams.
Biweekly.write(Collection)
,
Biweekly.write(ICalendar...)
Method Summary | |
---|---|
Biweekly.WriterChainText |
caretEncoding(boolean enable)
Sets whether the writer will apply circumflex accent encoding on parameter values (disabled by default). |
String |
go()
Writes the iCalendar objects to a string. |
void |
go(File file)
Writes the iCalendar objects to a file. |
void |
go(File file,
boolean append)
Writes the iCalendar objects to a file. |
void |
go(OutputStream out)
Writes the iCalendar objects to a data stream. |
void |
go(Writer writer)
Writes the iCalendar objects to a data stream. |
T |
register(ICalComponentMarshaller<? extends ICalComponent> marshaller)
Registers a component marshaller. |
T |
register(ICalPropertyMarshaller<? extends ICalProperty> marshaller)
Registers a property marshaller. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public Biweekly.WriterChainText caretEncoding(boolean enable)
Sets whether the writer will apply circumflex accent encoding on parameter values (disabled by default). This escaping mechanism allows for newlines and double quotes to be included in parameter values.
When disabled, the writer will replace newlines with spaces and double quotes with single quotes.
enable
- true to use circumflex accent encoding, false not to
ICalRawWriter.setCaretEncodingEnabled(boolean)
public String go()
IllegalArgumentException
- if the marshaller class for a
component or property object cannot be found (only happens when an
experimental property/component marshaller is not registered with the
register
method.)public void go(OutputStream out) throws IOException
out
- the output stream to write to
IllegalArgumentException
- if the marshaller class for a
component or property object cannot be found (only happens when an
experimental property/component marshaller is not registered with the
register
method.)
IOException
- if there's a problem writing to the output streampublic void go(File file) throws IOException
file
- the file to write to
IllegalArgumentException
- if the marshaller class for a
component or property object cannot be found (only happens when an
experimental property/component marshaller is not registered with the
register
method.)
IOException
- if there's a problem writing to the filepublic void go(File file, boolean append) throws IOException
file
- the file to write toappend
- true to append to the end of the file, false to
overwrite it
IllegalArgumentException
- if the marshaller class for a
component or property object cannot be found (only happens when an
experimental property/component marshaller is not registered with the
register
method.)
IOException
- if there's a problem writing to the filepublic void go(Writer writer) throws IOException
writer
- the writer to write to
IllegalArgumentException
- if the marshaller class for a
component or property object cannot be found (only happens when an
experimental property/component marshaller is not registered with the
register
method.)
IOException
- if there's a problem writing to the writerpublic T register(ICalPropertyMarshaller<? extends ICalProperty> marshaller)
marshaller
- the marshaller
public T register(ICalComponentMarshaller<? extends ICalComponent> marshaller)
marshaller
- the marshaller
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |