public class SignedBinary
extends java.lang.Object
Modifier and Type | Field | Description |
---|---|---|
static int |
BIG_ENDIAN |
Unix byte-order for signed binary representations.
|
static int |
LITTLE_ENDIAN |
Intel 80/86 reversed byte-order for signed binary representations.
|
Modifier | Constructor | Description |
---|---|---|
private |
SignedBinary() |
Modifier and Type | Method | Description |
---|---|---|
(package private) static byte |
getByte(byte[] buffer,
int offset) |
Get a byte from the buffer.
|
static int |
getInt(byte[] buffer,
int offset) |
Build a Java int from a 4-byte signed binary representation.
|
static long |
getLong(byte[] buffer,
int offset) |
Build a Java long from an 8-byte signed binary representation.
|
static short |
getShort(byte[] buffer,
int offset) |
Build a Java short from a 2-byte signed binary representation.
|
public static final int BIG_ENDIAN
public static final int LITTLE_ENDIAN
static byte getByte(byte[] buffer, int offset)
public static short getShort(byte[] buffer, int offset)
java.lang.IllegalArgumentException
- if the specified byte order is not recognized.public static final int getInt(byte[] buffer, int offset)
java.lang.IllegalArgumentException
- if the specified byte order is not recognized.public static final long getLong(byte[] buffer, int offset)
java.lang.IllegalArgumentException
- if the specified byte order is not recognized.Apache Derby V10.14 Internals - Copyright © 2004,2018 The Apache Software Foundation. All Rights Reserved.