| java.lang.Object org.apache.derby.impl.drda.SignedBinary
SignedBinary | class SignedBinary (Code) | | Converters from signed binary bytes to Java short , int , or long .
|
Field Summary | |
final public static int | BIG_ENDIAN AS/400, Unix, System/390 byte-order for signed binary representations. | final public static int | LITTLE_ENDIAN Intel 80/86 reversed byte-order for signed binary representations. |
Method Summary | |
public static int | bigEndianBytesToInt(byte[] buffer, int offset) Build a Java int from a 4-byte big endian signed binary representation. | public static long | bigEndianBytesToLong(byte[] buffer, int offset) Build a Java long from an 8-byte big endian signed binary representation. | public static short | bigEndianBytesToShort(byte[] buffer, int offset) Build a Java short from a 2-byte big endian signed binary representation. | public static int | getInt(byte[] buffer, int offset, int byteOrder) Build a Java int from a 4-byte signed binary representation. | public static long | getLong(byte[] buffer, int offset, int byteOrder) Build a Java long from an 8-byte signed binary representation. | public static short | getShort(byte[] buffer, int offset, int byteOrder) Build a Java short from a 2-byte signed binary representation. | public static int | littleEndianBytesToInt(byte[] buffer, int offset) Build a Java int from a 4-byte little endian signed binary representation. | public static long | littleEndianBytesToLong(byte[] buffer, int offset) Build a Java long from an 8-byte little endian signed binary representation. | public static short | littleEndianBytesToShort(byte[] buffer, int offset) Build a Java short from a 2-byte little endian signed binary representation. |
BIG_ENDIAN | final public static int BIG_ENDIAN(Code) | | AS/400, Unix, System/390 byte-order for signed binary representations.
|
LITTLE_ENDIAN | final public static int LITTLE_ENDIAN(Code) | | Intel 80/86 reversed byte-order for signed binary representations.
|
bigEndianBytesToInt | public static int bigEndianBytesToInt(byte[] buffer, int offset)(Code) | | Build a Java int from a 4-byte big endian signed binary representation.
|
bigEndianBytesToLong | public static long bigEndianBytesToLong(byte[] buffer, int offset)(Code) | | Build a Java long from an 8-byte big endian signed binary representation.
|
bigEndianBytesToShort | public static short bigEndianBytesToShort(byte[] buffer, int offset)(Code) | | Build a Java short from a 2-byte big endian signed binary representation.
|
getInt | public static int getInt(byte[] buffer, int offset, int byteOrder)(Code) | | Build a Java int from a 4-byte signed binary representation.
Depending on machine type, byte orders are
SignedBinary.BIG_ENDIAN BIG_ENDIAN for signed binary integers, and
SignedBinary.LITTLE_ENDIAN LITTLE_ENDIAN for pc8087 signed binary integers.
exception: IllegalArgumentException - if the specified byte order is not recognized. |
getLong | public static long getLong(byte[] buffer, int offset, int byteOrder)(Code) | | Build a Java long from an 8-byte signed binary representation.
Depending on machine type, byte orders are
SignedBinary.BIG_ENDIAN BIG_ENDIAN for signed binary integers, and
SignedBinary.LITTLE_ENDIAN LITTLE_ENDIAN for pc8087 signed binary integers.
exception: IllegalArgumentException - if the specified byte order is not recognized. |
getShort | public static short getShort(byte[] buffer, int offset, int byteOrder)(Code) | | Build a Java short from a 2-byte signed binary representation.
Depending on machine type, byte orders are
SignedBinary.BIG_ENDIAN BIG_ENDIAN for signed binary integers, and
SignedBinary.LITTLE_ENDIAN LITTLE_ENDIAN for pc8087 signed binary integers.
exception: IllegalArgumentException - if the specified byte order is not recognized. |
littleEndianBytesToInt | public static int littleEndianBytesToInt(byte[] buffer, int offset)(Code) | | Build a Java int from a 4-byte little endian signed binary representation.
|
littleEndianBytesToLong | public static long littleEndianBytesToLong(byte[] buffer, int offset)(Code) | | Build a Java long from an 8-byte little endian signed binary representation.
|
littleEndianBytesToShort | public static short littleEndianBytesToShort(byte[] buffer, int offset)(Code) | | Build a Java short from a 2-byte little endian signed binary representation.
|
|
|