Package com.dd.plist

Class XMLPropertyListWriter

java.lang.Object
com.dd.plist.XMLPropertyListWriter

public class XMLPropertyListWriter extends Object
Writes property lists in the XML format.
  • Constructor Details

    • XMLPropertyListWriter

      public XMLPropertyListWriter()
  • Method Details

    • write

      public static void write(NSObject root, File out) throws IOException
      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

      public static void write(NSObject root, Path path) throws IOException
      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

      public static void write(NSObject root, OutputStream out) throws IOException
      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.