Package com.dd.plist

Class ASCIIPropertyListWriter


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

      Constructors 
      Modifier Constructor Description
      private ASCIIPropertyListWriter()
      Prevents instantiation.
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static void write​(NSArray root, java.io.File out)
      Saves a property list with the given object as root into an ASCII file.
      static void write​(NSArray root, java.nio.file.Path path)
      Saves a property list with the given object as root into an ASCII file.
      static void write​(NSDictionary root, java.io.File out)
      Saves a property list with the given object as root into an ASCII file.
      static void write​(NSDictionary root, java.nio.file.Path path)
      Saves a property list with the given object as root into an ASCII file.
      static void writeGnuStep​(NSArray root, java.io.File out)
      Saves a property list with the given object as root into an ASCII file.
      static void writeGnuStep​(NSArray root, java.nio.file.Path path)
      Saves a property list with the given object as root into an ASCII file.
      static void writeGnuStep​(NSDictionary root, java.io.File out)
      Saves a property list with the given object as root into an ASCII file.
      static void writeGnuStep​(NSDictionary root, java.nio.file.Path path)
      Saves a property list with the given object as root into an ASCII file.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ASCIIPropertyListWriter

        private ASCIIPropertyListWriter()
        Prevents instantiation.
    • Method Detail

      • write

        public static void write​(NSDictionary root,
                                 java.io.File out)
                          throws java.io.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:
        java.io.IOException - If an error occurs during the writing process.
      • write

        public static void write​(NSDictionary root,
                                 java.nio.file.Path path)
                          throws java.io.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:
        java.io.IOException - If an error occurs during the writing process.
      • write

        public static void write​(NSArray root,
                                 java.io.File out)
                          throws java.io.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:
        java.io.IOException - If an error occurs during the writing process.
      • write

        public static void write​(NSArray root,
                                 java.nio.file.Path path)
                          throws java.io.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:
        java.io.IOException - If an error occurs during the writing process.
      • writeGnuStep

        public static void writeGnuStep​(NSDictionary root,
                                        java.io.File out)
                                 throws java.io.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:
        java.io.IOException - If an error occurs during the writing process.
      • writeGnuStep

        public static void writeGnuStep​(NSDictionary root,
                                        java.nio.file.Path path)
                                 throws java.io.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:
        java.io.IOException - If an error occurs during the writing process.
      • writeGnuStep

        public static void writeGnuStep​(NSArray root,
                                        java.io.File out)
                                 throws java.io.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:
        java.io.IOException - If an error occurs during the writing process.
      • writeGnuStep

        public static void writeGnuStep​(NSArray root,
                                        java.nio.file.Path path)
                                 throws java.io.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:
        java.io.IOException - If an error occurs during the writing process.