Package com.dd.plist

Class ASCIIPropertyListWriter

java.lang.Object
com.dd.plist.ASCIIPropertyListWriter

public final class ASCIIPropertyListWriter extends Object
Writes property lists in the ASCII format. Supports Apple OS X/iOS and GnuStep/NeXTSTEP format.
  • Constructor Details

    • ASCIIPropertyListWriter

      private ASCIIPropertyListWriter()
      Prevents instantiation.
  • Method Details

    • write

      public static void write(NSDictionary root, File out) throws IOException
      Saves a property list with the given object as root into an ASCII 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(NSDictionary root, Path path) throws IOException
      Saves a property list with the given object as root into an ASCII 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(NSArray root, File out) throws IOException
      Saves a property list with the given object as root into an ASCII 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(NSArray root, Path path) throws IOException
      Saves a property list with the given object as root into an ASCII file.
      Parameters:
      root - The root object.
      path - The output file path.
      Throws:
      IOException - If an error occurs during the writing process.
    • writeGnuStep

      public static void writeGnuStep(NSDictionary root, File out) throws IOException
      Saves a property list with the given object as root into an ASCII 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.
    • writeGnuStep

      public static void writeGnuStep(NSDictionary root, Path path) throws IOException
      Saves a property list with the given object as root into an ASCII file.
      Parameters:
      root - The root object.
      path - The output file path.
      Throws:
      IOException - If an error occurs during the writing process.
    • writeGnuStep

      public static void writeGnuStep(NSArray root, File out) throws IOException
      Saves a property list with the given object as root into an ASCII 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.
    • writeGnuStep

      public static void writeGnuStep(NSArray root, Path path) throws IOException
      Saves a property list with the given object as root into an ASCII file.
      Parameters:
      root - The root object.
      path - The output file path.
      Throws:
      IOException - If an error occurs during the writing process.