public static class Biweekly.WriterChainXml extends Object
| Modifier and Type | Method and Description |
|---|---|
Document |
dom()
Writes the xCal document to an XML DOM.
|
String |
go()
Writes the xCal document to a string.
|
void |
go(File file)
Writes the xCal document to a file.
|
void |
go(OutputStream out)
Writes the xCal document to an output stream.
|
void |
go(Writer writer)
Writes the xCal document to a writer.
|
Biweekly.WriterChainXml |
indent(int indent)
Sets the number of indent spaces to use for pretty-printing.
|
Biweekly.WriterChainXml |
register(ICalComponentScribe<? extends ICalComponent> scribe)
Registers a component scribe.
|
Biweekly.WriterChainXml |
register(ICalPropertyScribe<? extends ICalProperty> scribe)
Registers a property scribe.
|
Biweekly.WriterChainXml |
register(String parameterName,
ICalDataType dataType)
Registers the data type of an experimental parameter.
|
public Biweekly.WriterChainXml register(ICalPropertyScribe<? extends ICalProperty> scribe)
scribe - the scribepublic Biweekly.WriterChainXml register(ICalComponentScribe<? extends ICalComponent> scribe)
scribe - the scribepublic Biweekly.WriterChainXml register(String parameterName, ICalDataType dataType)
parameterName - the parameter name (e.g. "x-foo")dataType - the data typepublic Biweekly.WriterChainXml indent(int indent)
indent - the number of spacespublic 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 TransformerException
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.)TransformerException - if there's a problem writing the XMLpublic void go(File file) throws TransformerException, 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.)TransformerException - if there's a problem writing the XMLIOException - if there's a problem writing to the filepublic void go(Writer writer) throws TransformerException
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.)TransformerException - if there's a problem writing the XMLCopyright © 2013-2015 Michael Angstadt. All Rights Reserved.