public class DOMXMLWriter extends PropertyListWriter
NSObjects to an XML property list| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
DOCTYPE_PUBLIC
The public declaration of the document type
|
static java.lang.String |
DOCTYPE_SYSTEM
The URL of the document type
|
static java.lang.String |
VERSION
Version of this XML format
|
DEFAULTFORMAT| Constructor and Description |
|---|
DOMXMLWriter(NSObject root) |
| Modifier and Type | Method and Description |
|---|---|
void |
write(java.io.OutputStream stream)
Write the property list to a stream
|
void |
write(java.io.OutputStream stream,
boolean indent)
Convert a tree to a XML property list and write it to a stream
|
write, write, writepublic static final java.lang.String DOCTYPE_PUBLIC
public static final java.lang.String DOCTYPE_SYSTEM
public static final java.lang.String VERSION
public DOMXMLWriter(NSObject root)
public void write(java.io.OutputStream stream)
throws org.w3c.dom.DOMException,
PropertyListException,
java.io.IOException
write in class PropertyListWriterstream - the stream to write the property list toPropertyListException - when generating the property list failsjava.io.IOException - when writing to the stream failsorg.w3c.dom.DOMExceptionpublic void write(java.io.OutputStream stream,
boolean indent)
throws org.w3c.dom.DOMException,
PropertyListException,
java.io.IOException
stream - the stream to write the property list toindent - whether the resulting XML file should be indentedorg.w3c.dom.DOMException - when an error occurred generating the XML documentPropertyListException - when generating the property list failsjava.io.IOException - if an I/O error occurs