|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectezvcard.io.XCardDocument
public class XCardDocument
Converts vCards to their XML representation.
Constructor Summary | |
---|---|
XCardDocument()
|
Method Summary | |
---|---|
void |
addVCard(VCard vcard)
Adds a vCard to the XML document |
CompatibilityMode |
getCompatibilityMode()
Deprecated. |
Document |
getDocument()
Gets the XML document that was generated. |
List<String> |
getWarnings()
Gets the warnings from the last vCard that was marshalled. |
boolean |
isAddProdId()
Gets whether or not a "PRODID" type will be added to each vCard, saying that the vCard was generated by this library. |
void |
setAddProdId(boolean addProdId)
Sets whether or not to add a "PRODID" type to each vCard, saying that the vCard was generated by this library. |
void |
setCompatibilityMode(CompatibilityMode compatibilityMode)
Deprecated. |
String |
write()
Writes the XML document to a string without pretty-printing it. |
void |
write(File file)
Writes the XML document to a file without pretty-printing it. |
void |
write(File file,
int indent)
Writes the XML document to a file and pretty-prints it. |
String |
write(int indent)
Writes the XML document to a string and pretty-prints it. |
void |
write(OutputStream out)
Writes the XML document to an output stream without pretty-printing it. |
void |
write(OutputStream out,
int indent)
Writes the XML document to an output stream and pretty-prints it. |
void |
write(Writer writer)
Writes the XML document to a writer without pretty-printing it. |
void |
write(Writer writer,
int indent)
Writes the XML document to a writer and pretty-prints it. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public XCardDocument()
Method Detail |
---|
@Deprecated public CompatibilityMode getCompatibilityMode()
@Deprecated public void setCompatibilityMode(CompatibilityMode compatibilityMode)
compatibilityMode
- the compatibility modepublic boolean isAddProdId()
public void setAddProdId(boolean addProdId)
addProdId
- true to add this type, false not to (defaults to true)public List<String> getWarnings()
public Document getDocument()
public String write()
public String write(int indent)
indent
- the number of indent spaces to use for pretty-printing
public void write(OutputStream out) throws TransformerException
out
- the output stream
TransformerException
- if there's a problem writing to the output
streampublic void write(OutputStream out, int indent) throws TransformerException
out
- the output streamindent
- the number of indent spaces to use for pretty-printing
TransformerException
- if there's a problem writing to the output
streampublic void write(File file) throws TransformerException, IOException
file
- the file
TransformerException
- if there's a problem writing to the file
IOException
public void write(File file, int indent) throws TransformerException, IOException
file
- the file streamindent
- the number of indent spaces to use for pretty-printing
TransformerException
- if there's a problem writing to the file
IOException
public void write(Writer writer) throws TransformerException
writer
- the writer
TransformerException
- if there's a problem writing to the writerpublic void write(Writer writer, int indent) throws TransformerException
writer
- the writerindent
- the number of indent spaces to use for pretty-printing
TransformerException
- if there's a problem writing to the writerpublic void addVCard(VCard vcard)
vcard
- the vCard to add
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |