Package com.dd.plist
Class ASCIIPropertyListWriter
java.lang.Object
com.dd.plist.ASCIIPropertyListWriter
Writes property lists in the ASCII format. Supports Apple OS X/iOS and GnuStep/NeXTSTEP format.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidSaves a property list with the given object as root into an ASCII file.static voidSaves a property list with the given object as root into an ASCII file.static voidwrite(NSDictionary root, File out) Saves a property list with the given object as root into an ASCII file.static voidwrite(NSDictionary root, Path path) Saves a property list with the given object as root into an ASCII file.static voidwriteGnuStep(NSArray root, File out) Saves a property list with the given object as root into an ASCII file.static voidwriteGnuStep(NSArray root, Path path) Saves a property list with the given object as root into an ASCII file.static voidwriteGnuStep(NSDictionary root, File out) Saves a property list with the given object as root into an ASCII file.static voidwriteGnuStep(NSDictionary root, Path path) Saves a property list with the given object as root into an ASCII file.
-
Constructor Details
-
ASCIIPropertyListWriter
private ASCIIPropertyListWriter()Prevents instantiation.
-
-
Method Details
-
write
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
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
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
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
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
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
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
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.
-