Class XMLPropertyListWriter
java.lang.Object
com.dd.plist.XMLPropertyListWriter
Writes property lists in the XML format.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidSaves a property list with the given object as root into an XML file.static voidwrite(NSObject root, OutputStream out) Saves a property list with the given object as root in XML format into an output stream.static voidSaves a property list with the given object as root into an XML file.
-
Constructor Details
-
XMLPropertyListWriter
public XMLPropertyListWriter()
-
-
Method Details
-
write
Saves a property list with the given object as root into an XML file.- Parameters:
root- The root object.out- The output file. If the output file's parent directory does not exist, it will be created.- Throws:
IOException- If an error occurs during the writing process.
-
write
Saves a property list with the given object as root into an XML file.- Parameters:
root- The root object.path- The output file path.- Throws:
IOException- If an error occurs during the writing process.
-
write
Saves a property list with the given object as root in XML format into an output stream. This method does not close the specified output stream.- Parameters:
root- The root object.out- The output stream.- Throws:
IOException- If an error occurs during the writing process.
-