public static class Biweekly.WriterChainText extends Object
Modifier and Type | Method and Description |
---|---|
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(ICalComponentScribe<? extends ICalComponent> scribe)
Registers a component scribe.
|
T |
register(ICalPropertyScribe<? extends ICalProperty> scribe)
Registers a property scribe.
|
Biweekly.WriterChainText |
version(ICalVersion version)
Sets the iCal version to adhere to when writing (defaults to 2.0).
|
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 toICalRawWriter.setCaretEncodingEnabled(boolean)
public Biweekly.WriterChainText version(ICalVersion version)
version
- the versionpublic String go()
IllegalArgumentException
- if the scribe class for a component
or property object cannot be found (only happens when an experimental
property/component scribe is not registered with the register
method.)public void go(OutputStream out) throws IOException
out
- the output stream to write toIllegalArgumentException
- if the scribe class for a component
or property object cannot be found (only happens when an experimental
property/component scribe 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 toIllegalArgumentException
- if the scribe class for a component
or property object cannot be found (only happens when an experimental
property/component scribe 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 itIllegalArgumentException
- if the scribe class for a component
or property object cannot be found (only happens when an experimental
property/component scribe 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 toIllegalArgumentException
- if the scribe class for a component
or property object cannot be found (only happens when an experimental
property/component scribe is not registered with the register
method.)IOException
- if there's a problem writing to the writerpublic T register(ICalPropertyScribe<? extends ICalProperty> scribe)
scribe
- the scribepublic T register(ICalComponentScribe<? extends ICalComponent> scribe)
scribe
- the scribeCopyright © 2013-2015 Michael Angstadt. All Rights Reserved.