public static class Biweekly.WriterChainJson extends Object
Modifier and Type | Method and Description |
---|---|
String |
go()
Writes the iCalendar objects to a string.
|
void |
go(File file)
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.
|
Biweekly.WriterChainJson |
indent(boolean indent)
Sets whether or not to pretty-print the JSON.
|
T |
register(ICalComponentScribe<? extends ICalComponent> scribe)
Registers a component scribe.
|
T |
register(ICalPropertyScribe<? extends ICalProperty> scribe)
Registers a property scribe.
|
public Biweekly.WriterChainJson indent(boolean indent)
indent
- true to pretty-print it, false not to (defaults to
false)public 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(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.