Top Description Constructors Methods
com.dd.plist

public Class XMLPropertyListWriter

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

Writes property lists in the XML format.
Author
Daniel Dreibrodt

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public static void
write(NSObject
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 XML file.

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

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

public static void
write(NSObject
The root object.
root
,
OutputStream
The output stream.
out
)

Saves a property list with the given object as root in XML format into an output stream.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

XMLPropertyListWriterback to summary
public XMLPropertyListWriter()

Method Detail

writeback to summary
public static void write(NSObject root, File out) throws IOException

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

Parameters
root:NSObject

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(NSObject root, Path path) throws IOException

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

Parameters
root:NSObject

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(NSObject root, OutputStream out) throws IOException

Saves a property list with the given object as root in XML format into an output stream. This method does not close the specified output stream.

Parameters
root:NSObject

The root object.

out:OutputStream

The output stream.

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