public final class BinaryPropertyListWriter extends Object
| Modifier and Type | Method and Description |
|---|---|
static void |
write(File file,
NSObject root)
Deprecated.
Use the overload that takes the root as first argument and the file as second.
|
static void |
write(NSObject root,
File file)
Writes a binary plist file with the given object as the root.
|
static void |
write(NSObject root,
File file,
boolean createParentDirectories)
Writes a binary plist file with the given object as the root.
|
static void |
write(NSObject root,
OutputStream out)
Writes a binary plist serialization of the given object as the root.
|
static void |
write(NSObject root,
Path path)
Writes a binary plist file with the given object as the root.
|
static void |
write(OutputStream out,
NSObject root)
Deprecated.
Use the overload that takes the root as first argument and the stream as second.
|
static byte[] |
writeToArray(NSObject root)
Writes a binary plist serialization of the given object as the root
into a byte array.
|
@Deprecated public static void write(File file, NSObject root) throws IOException
file - The file to write to.root - The source of the data to write to the file.IOException - If an I/O error occurs while writing to the file or the object structure contains
data that cannot be saved.public static void write(NSObject root, File file) throws IOException
root - The source of the data to write to the file.file - The file to write to.IOException - If an I/O error occurs while writing to the file or the object structure contains
data that cannot be saved.public static void write(NSObject root, File file, boolean createParentDirectories) throws IOException
root - The source of the data to write to the file.file - The file to write to.createParentDirectories - If set to true, the file's parent directories will be created.IOException - If an I/O error occurs while writing to the file or the object structure contains
data that cannot be saved.public static void write(NSObject root, Path path) throws IOException
root - The source of the data to write to the file.path - The path of the file to write to.IOException - If an I/O error occurs while writing to the file or the object structure contains
data that cannot be saved.@Deprecated public static void write(OutputStream out, NSObject root) throws IOException
out - The stream to write to.root - The source of the data to write to the stream.IOException - If an I/O error occurs while writing to the stream or the object structure contains
data that cannot be saved.public static void write(NSObject root, OutputStream out) throws IOException
root - The source of the data to write to the stream.out - The stream to write to.IOException - If an I/O error occurs while writing to the stream or the object structure contains
data that cannot be saved.public static byte[] writeToArray(NSObject root) throws IOException
root - The root object of the property listIOException - If an I/O error occurs while writing to the stream or the object structure contains
data that cannot be saved.Copyright © 2024. All rights reserved.