public final class BinaryPropertyListWriter extends Object
Modifier and Type | Method and Description |
---|---|
static void |
write(File file,
NSObject root)
Writes a binary plist file with the given object as the root.
|
static void |
write(OutputStream out,
NSObject root)
Writes a binary plist serialization of the given object as the root.
|
static byte[] |
writeToArray(NSObject root)
Writes a binary plist serialization of the given object as the root
into a byte array.
|
public static void write(File file, NSObject root) throws IOException
file
- the file to write toroot
- the source of the data to write to the fileIOException
- 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(OutputStream out, NSObject root) throws IOException
out
- the stream to write toroot
- the source of the data to write to the streamIOException
- 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 © 2018. All rights reserved.