public class BinaryPropertyListParser extends Object
parse
methods.Modifier | Constructor and Description |
---|---|
protected |
BinaryPropertyListParser()
Protected constructor so that instantiation is fully controlled by the
static parse methods.
|
Modifier and Type | Method and Description |
---|---|
static byte[] |
copyOfRange(byte[] src,
int startIndex,
int endIndex)
Copies a part of a byte array into a new array.
|
static NSObject |
parse(byte[] data)
Parses a binary property list from a byte array.
|
static NSObject |
parse(File f)
Parses a binary property list file.
|
static NSObject |
parse(InputStream is)
Parses a binary property list from an input stream.
|
static double |
parseDouble(byte[] bytes)
Parses doubles from a (big-endian) byte array.
|
static long |
parseLong(byte[] bytes)
Parses longs from a (big-endian) byte array.
|
static long |
parseUnsignedInt(byte[] bytes)
Parses an unsigned integers from a byte array.
|
protected BinaryPropertyListParser()
parse(byte[])
public static NSObject parse(byte[] data) throws Exception
data
- The binary property list's data.Exception
- When an error occurs during parsing.public static NSObject parse(InputStream is) throws Exception
is
- The input stream that points to the property list's data.Exception
- When an error occurs during parsing.public static NSObject parse(File f) throws Exception
f
- The binary property list fileException
- When an error occurs during parsing.public static final long parseUnsignedInt(byte[] bytes)
bytes
- The byte array containing the unsigned integer.public static final long parseLong(byte[] bytes)
bytes
- The bytes representing the long integer.public static final double parseDouble(byte[] bytes)
bytes
- The bytes representing the double.public static byte[] copyOfRange(byte[] src, int startIndex, int endIndex)
src
- The source array.startIndex
- The index from which to start copying.endIndex
- The index until which to copy.Copyright © 2013. All Rights Reserved.