|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectbiweekly.Biweekly.WriterChainTextMulti
public static class Biweekly.WriterChainTextMulti
Chainer class for writing to plain text iCalendar data streams.
Biweekly.write(Collection)
,
Biweekly.write(ICalendar...)
Method Summary | |
---|---|
Biweekly.WriterChainTextMulti |
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(OutputStream out)
Writes the iCalendar objects to a data stream. |
void |
go(Writer writer)
Writes the iCalendar objects to a data stream. |
Biweekly.WriterChainTextMulti |
register(ICalComponentMarshaller<? extends ICalComponent> marshaller)
Registers a component marshaller. |
Biweekly.WriterChainTextMulti |
register(ICalPropertyMarshaller<? extends ICalProperty> marshaller)
Registers a property marshaller. |
Biweekly.WriterChainTextMulti |
warnings(List<List<String>> warnings)
Provides a list for putting the marshal warnings into. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public Biweekly.WriterChainTextMulti 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.WriterChainTextMulti warnings(List<List<String>> warnings)
warnings
- the list object to populate (it is a
"list of lists"--each ICalendar
object has its own warnings
list)
public Biweekly.WriterChainTextMulti register(ICalPropertyMarshaller<? extends ICalProperty> marshaller)
marshaller
- the marshaller
public Biweekly.WriterChainTextMulti register(ICalComponentMarshaller<? extends ICalComponent> marshaller)
marshaller
- the marshaller
public String go()
public void go(OutputStream out) throws IOException
out
- the output stream to write to
IOException
- if there's a problem writing to the output streampublic void go(File file) throws IOException
file
- the file to write to
IOException
- if there's a problem writing to the filepublic void go(Writer writer) throws IOException
writer
- the writer to write to
IOException
- if there's a problem writing to the writer
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |