Top Description Constructors Methods
com.dd.plist

public final Class ASCIIPropertyListWriter

extends Object
Class Inheritance
Imports
java.io.File, .IOException, .OutputStreamWriter, java.nio.charset.StandardCharsets, java.nio.file.Files, .Path, java.util.Objects

Writes property lists in the ASCII format. Supports Apple OS X/iOS and GnuStep/NeXTSTEP format.
Author
Daniel Dreibrodt

Constructor Summary

AccessConstructor and Description
private
ASCIIPropertyListWriter()

Prevents instantiation.

Method Summary

Modifier and TypeMethod and Description
public static void
write(NSDictionary
The root object.
root
,
File
The output file. If the output file's parent directory does not exist, it will be created.
out
)

Saves a property list with the given object as root into an ASCII file.

public static void
write(NSDictionary
The root object.
root
,
Path
The output file path.
path
)

Saves a property list with the given object as root into an ASCII file.

public static void
write(NSArray
The root object.
root
,
File
The output file. If the output file's parent directory does not exist, it will be created.
out
)

Saves a property list with the given object as root into an ASCII file.

public static void
write(NSArray
The root object.
root
,
Path
The output file path.
path
)

Saves a property list with the given object as root into an ASCII file.

public static void
writeGnuStep(NSDictionary
The root object.
root
,
File
The output file. If the output file's parent directory does not exist, it will be created.
out
)

Saves a property list with the given object as root into an ASCII file.

public static void
writeGnuStep(NSDictionary
The root object.
root
,
Path
The output file path.
path
)

Saves a property list with the given object as root into an ASCII file.

public static void
writeGnuStep(NSArray
The root object.
root
,
File
The output file. If the output file's parent directory does not exist, it will be created.
out
)

Saves a property list with the given object as root into an ASCII file.

public static void
writeGnuStep(NSArray
The root object.
root
,
Path
The output file path.
path
)

Saves a property list with the given object as root into an ASCII file.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

ASCIIPropertyListWriterback to summary
private ASCIIPropertyListWriter()

Prevents instantiation.

Method Detail

writeback to summary
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:NSDictionary

The root object.

out:File

The output file. If the output file's parent directory does not exist, it will be created.

Exceptions
IOException:
If an error occurs during the writing process.
writeback to summary
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:NSDictionary

The root object.

path:Path

The output file path.

Exceptions
IOException:
If an error occurs during the writing process.
writeback to summary
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:NSArray

The root object.

out:File

The output file. If the output file's parent directory does not exist, it will be created.

Exceptions
IOException:
If an error occurs during the writing process.
writeback to summary
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:NSArray

The root object.

path:Path

The output file path.

Exceptions
IOException:
If an error occurs during the writing process.
writeGnuStepback to summary
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:NSDictionary

The root object.

out:File

The output file. If the output file's parent directory does not exist, it will be created.

Exceptions
IOException:
If an error occurs during the writing process.
writeGnuStepback to summary
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:NSDictionary

The root object.

path:Path

The output file path.

Exceptions
IOException:
If an error occurs during the writing process.
writeGnuStepback to summary
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:NSArray

The root object.

out:File

The output file. If the output file's parent directory does not exist, it will be created.

Exceptions
IOException:
If an error occurs during the writing process.
writeGnuStepback to summary
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:NSArray

The root object.

path:Path

The output file path.

Exceptions
IOException:
If an error occurs during the writing process.