|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectbiweekly.Biweekly.WriterChainXml
public static class Biweekly.WriterChainXml
Chainer class for writing xCal documents (XML-encoded iCalendar objects).
Biweekly.writeXml(Collection)
,
Biweekly.writeXml(ICalendar...)
Method Summary | |
---|---|
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(ICalComponentMarshaller<? extends ICalComponent> marshaller)
Registers a component marshaller. |
Biweekly.WriterChainXml |
register(ICalPropertyMarshaller<? extends ICalProperty> marshaller)
Registers a property marshaller. |
Biweekly.WriterChainXml |
register(String parameterName,
ICalDataType dataType)
Registers the data type of an experimental parameter. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public Biweekly.WriterChainXml register(ICalPropertyMarshaller<? extends ICalProperty> marshaller)
marshaller
- the marshaller
public Biweekly.WriterChainXml register(ICalComponentMarshaller<? extends ICalComponent> marshaller)
marshaller
- the marshaller
public Biweekly.WriterChainXml register(String parameterName, ICalDataType dataType)
parameterName
- the parameter name (e.g. "x-foo")dataType
- the data type
public Biweekly.WriterChainXml indent(int indent)
indent
- the number of spaces
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 TransformerException
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.)
TransformerException
- if there's a problem writing the XMLpublic void go(File file) throws TransformerException, 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.)
TransformerException
- if there's a problem writing the XML
IOException
- if there's a problem writing to the filepublic void go(Writer writer) throws TransformerException
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.)
TransformerException
- if there's a problem writing the XMLpublic Document dom()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |