| Modifier and Type | Field and Description |
|---|---|
| private long | |
| private final Map | |
| private int | |
| private final OutputStream | |
| private int | |
| private static final int | |
| private static final int | |
| private static final int | |
| private static final int |
| Access | Constructor and Description |
|---|---|
| pack-priv | BinaryPropertyListWriter(OutputStream
The output stream into which the binary property list will be written outStr, int The binary property list format version. version)Creates a new binary property list writer |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv void | |
| private static int | |
| private int | |
| pack-priv int | |
| private static int | Returns: Version codeObject root root)Finds out the minimum binary property list format version that can be used to save the given NSObject tree. |
| public static void | |
| public static void | |
| public static void | |
| public static void | |
| public static void | write(OutputStream
The stream to write to. out, NSObject The source of the data to write to the stream. root)
Deprecated
Use the overload that takes the root as first argument and the stream as second.
Writes a binary plist serialization of the given object as the root. |
| public static void | write(NSObject
The source of the data to write to the stream. root, OutputStream The stream to write to. out)Writes a binary plist serialization of the given object as the root. |
| pack-priv void | |
| pack-priv void | |
| pack-priv void | |
| pack-priv void | |
| pack-priv void | |
| pack-priv void | |
| pack-priv void | |
| pack-priv void | |
| public static byte[] | Returns: The byte array containing the serialized property listThe root object of the property list root)Writes a binary plist serialization of the given object as the root into a byte array. |
| count | back to summary |
|---|---|
| private long count | |
| idMap | back to summary |
|---|---|
| private final Map<NSObject, Integer> idMap | |
| idSizeInBytes | back to summary |
|---|---|
| private int idSizeInBytes | |
| out | back to summary |
|---|---|
| private final OutputStream out | |
| version | back to summary |
|---|---|
| private int version | |
| VERSION_00 | back to summary |
|---|---|
| private static final int VERSION_00 | |
| VERSION_10 | back to summary |
|---|---|
| private static final int VERSION_10 | |
| VERSION_15 | back to summary |
|---|---|
| private static final int VERSION_15 | |
| VERSION_20 | back to summary |
|---|---|
| private static final int VERSION_20 | |
| BinaryPropertyListWriter | back to summary |
|---|---|
| pack-priv BinaryPropertyListWriter(OutputStream outStr, int version) Creates a new binary property list writer
| |
| assignID | back to summary |
|---|---|
| pack-priv void assignID(NSObject obj) | |
| computeIdSizeInBytes | back to summary |
|---|---|
| private static int computeIdSizeInBytes(int numberOfIds) | |
| computeOffsetSizeInBytes | back to summary |
|---|---|
| private int computeOffsetSizeInBytes(long maxOffset) | |
| getID | back to summary |
|---|---|
| pack-priv int getID(NSObject obj) | |
| getMinimumRequiredVersion | back to summary |
|---|---|
| private static int getMinimumRequiredVersion(NSObject root) Finds out the minimum binary property list format version that can be used to save the given NSObject tree.
| |
| write | back to summary |
|---|---|
| public static void write(File file, NSObject root) throws IOException
Deprecated Use the overload that takes the root as first argument and the file as second. Writes a binary plist file with the given object as the root.
| |
| write | back to summary |
|---|---|
| public static void write(NSObject root, File file) throws IOException Writes a binary plist file with the given object as the root.
| |
| write | back to summary |
|---|---|
| public static void write(NSObject root, File file, boolean createParentDirectories) throws IOException Writes a binary plist file with the given object as the root.
| |
| write | back to summary |
|---|---|
| public static void write(NSObject root, Path path) throws IOException Writes a binary plist file with the given object as the root.
| |
| write | back to summary |
|---|---|
| public static void write(OutputStream out, NSObject root) throws IOException
Deprecated Use the overload that takes the root as first argument and the stream as second. Writes a binary plist serialization of the given object as the root. This method does not close the output stream.
| |
| write | back to summary |
|---|---|
| public static void write(NSObject root, OutputStream out) throws IOException Writes a binary plist serialization of the given object as the root. This method does not close the output stream.
| |
| write | back to summary |
|---|---|
| pack-priv void write(NSObject root) throws IOException | |
| write | back to summary |
|---|---|
| pack-priv void write(int b) throws IOException | |
| write | back to summary |
|---|---|
| pack-priv void write(byte[] bytes) throws IOException | |
| writeBytes | back to summary |
|---|---|
| pack-priv void writeBytes(long value, int bytes) throws IOException | |
| writeDouble | back to summary |
|---|---|
| pack-priv void writeDouble(double value) throws IOException | |
| writeID | back to summary |
|---|---|
| pack-priv void writeID(int id) throws IOException | |
| writeIntHeader | back to summary |
|---|---|
| pack-priv void writeIntHeader(int kind, int value) throws IOException | |
| writeLong | back to summary |
|---|---|
| pack-priv void writeLong(long value) throws IOException | |
| writeToArray | back to summary |
|---|---|
| public static byte[] writeToArray(NSObject root) throws IOException Writes a binary plist serialization of the given object as the root into a byte array.
| |