|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectbiweekly.Biweekly.WriterChainJson
public static class Biweekly.WriterChainJson
Chainer class for writing to JSON-encoded iCalendar data streams (jCal).
Biweekly.writeJson(Collection)
,
Biweekly.writeJson(ICalendar...)
Method Summary | |
---|---|
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(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.WriterChainJson indent(boolean indent)
indent
- true to pretty-print it, false not to (defaults to
false)
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(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 |