Package com.dd.plist
Class ASCIIPropertyListWriter
- java.lang.Object
-
- com.dd.plist.ASCIIPropertyListWriter
-
public final class ASCIIPropertyListWriter extends java.lang.ObjectWrites property lists in the ASCII format. Supports Apple OS X/iOS and GnuStep/NeXTSTEP format.
-
-
Constructor Summary
Constructors Modifier Constructor Description privateASCIIPropertyListWriter()Prevents instantiation.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voidwrite(NSArray root, java.io.File out)Saves a property list with the given object as root into an ASCII file.static voidwrite(NSArray root, java.nio.file.Path path)Saves a property list with the given object as root into an ASCII file.static voidwrite(NSDictionary root, java.io.File out)Saves a property list with the given object as root into an ASCII file.static voidwrite(NSDictionary root, java.nio.file.Path path)Saves a property list with the given object as root into an ASCII file.static voidwriteGnuStep(NSArray root, java.io.File out)Saves a property list with the given object as root into an ASCII file.static voidwriteGnuStep(NSArray root, java.nio.file.Path path)Saves a property list with the given object as root into an ASCII file.static voidwriteGnuStep(NSDictionary root, java.io.File out)Saves a property list with the given object as root into an ASCII file.static voidwriteGnuStep(NSDictionary root, java.nio.file.Path path)Saves a property list with the given object as root into an ASCII file.
-
-
-
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.
-
-