|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectezvcard.Ezvcard.WriterChainXmlSingle
public static class Ezvcard.WriterChainXmlSingle
Convenience chainer class for writing XML vCards (xCard).
Method Summary | |
---|---|
Document |
dom()
Generates an XML document object model (DOM) containing the xCards. |
String |
go()
Writes the xCards to a string. |
void |
go(File file)
Writes the xCards to a file. |
void |
go(OutputStream out)
Writes the xCards to an output stream. |
void |
go(Writer writer)
Writes the xCards to a writer. |
Ezvcard.WriterChainXmlSingle |
indent(int indent)
Sets the number of indent spaces to use for pretty-printing. |
Ezvcard.WriterChainXmlSingle |
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.WriterChainXmlSingle |
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.WriterChainXmlSingle prodId(boolean include)
include
- true to add PRODID (default), false not to
public Ezvcard.WriterChainXmlSingle indent(int indent)
indent
- the number of spaces in the indent string
public Ezvcard.WriterChainXmlSingle warnings(List<String> warnings)
warnings
- the list object that will be populated with the
warnings of each marshalled vCard.
public String go()
public void go(OutputStream out) throws TransformerException
out
- the output stream to write to
TransformerException
- if there's a problem writing to the
output streampublic void go(File file) throws IOException, TransformerException
file
- the file to write to
IOException
- if the file can't be opened
TransformerException
- if there's a problem writing to the filepublic void go(Writer writer) throws TransformerException
writer
- the writer to write to
TransformerException
- if there's a problem writing to the
writerpublic Document dom()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |