|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectezvcard.Ezvcard.WriterChainTextSingle
public static class Ezvcard.WriterChainTextSingle
Convenience chainer class for writing plain text vCards
Method Summary | |
---|---|
Ezvcard.WriterChainTextSingle |
caretEncoding(boolean enable)
Sets whether the writer will use circumflex accent encoding for vCard 3.0 and 4.0 parameter values (disabled by default). |
String |
go()
Writes the vCards to a string. |
void |
go(File file)
Writes the vCards to a file. |
void |
go(OutputStream out)
Writes the vCards to an output stream. |
void |
go(Writer writer)
Writes the vCards to a writer. |
Ezvcard.WriterChainTextSingle |
prodId(boolean include)
Sets whether or not to add a PRODID type to each vCard, saying that the vCard was generated by this library. |
Ezvcard.WriterChainTextSingle |
version(VCardVersion version)
Sets the version that all the vCards will be marshalled to. |
Ezvcard.WriterChainTextSingle |
warnings(List<String> warnings)
Provides a list object that any marshal warnings will be put into. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public Ezvcard.WriterChainTextSingle version(VCardVersion version)
Sets the version that all the vCards will be marshalled to. The
version that is attached to each individual VCard
object will
be ignored.
If no version is passed into this method, the writer will look at the
version attached to each individual VCard
object and marshal
it to that version. And if a VCard
object has no version
attached to it, then it will be marshalled to version 3.0.
version
- the version to marshal the vCards to
public Ezvcard.WriterChainTextSingle prodId(boolean include)
include
- true to add PRODID (default), false not to
public Ezvcard.WriterChainTextSingle caretEncoding(boolean enable)
enable
- true to use circumflex accent encoding, false not toVCardWriter.setCaretEncodingEnabled(boolean)
,
RFC 6868public Ezvcard.WriterChainTextSingle warnings(List<String> warnings)
warnings
- the list object that will be populated with the
warnings of the marshalled vCard.
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 |