| Modifier and Type | Class and Description |
|---|---|
| public static class | LittleEndian.
Exception to handle buffer underruns |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static double | Returns: the double (64-bit) valuethe byte array data)get a double value from a byte array, reads it in little endian format then converts the resulting revolting IEEE 754 (curse them) floating point number to a happy java double |
| public static double | Returns: the double (64-bit) valuethe byte array data, int a starting offset into the byte array offset)get a double value from a byte array, reads it in little endian format then converts the resulting revolting IEEE 754 (curse them) floating point number to a happy java double |
| public static float | Returns: the double (64-bit) valuethe byte array data)get a float value from a byte array, reads it in little endian format then converts the resulting revolting IEEE 754 (curse them) floating point number to a happy java float |
| public static float | Returns: the double (64-bit) valuethe byte array data, int a starting offset into the byte array offset)get a float value from a byte array, reads it in little endian format then converts the resulting revolting IEEE 754 (curse them) floating point number to a happy java float |
| public static int | Returns: the int (32-bit) valuethe byte array data)get an int value from the beginning of a byte array |
| public static int | Returns: the int (32-bit) valuethe byte array data, int a starting offset into the byte array offset)get an int value from a byte array |
| public static long | Returns: the long (64-bit) valuethe byte array data)get a long value from a byte array |
| public static long | Returns: the long (64-bit) valuethe byte array data, int a starting offset into the byte array offset)get a long value from a byte array |
| public static short | Returns: the short (16-bit) valuethe byte array data)get a short value from the beginning of a byte array |
| public static short | Returns: the short (16-bit) valuethe byte array data, int a starting offset into the byte array offset)get a short value from a byte array |
| public static short[] | getShortArray(byte[]
the original byte array data, int Where to start copying from. offset, int Number of bytes to copy. size)Read short array |
| public static short | Returns: the unsigned value of the byte as a 16 bit shortthe byte array. data)get the unsigned value of a byte. |
| public static short | Returns: the unsigned value of the byte as a 16 bit shortthe byte array. data, int a starting offset into the byte array. offset)get the unsigned value of a byte. |
| public static long | Returns: the unsigned int (32-bit) value in a longthe byte array data)get an unsigned int value from a byte array |
| public static long | Returns: the unsigned int (32-bit) value in a longthe byte array data, int a starting offset into the byte array offset)get an unsigned int value from a byte array |
| public static int | Returns: the unsigned short (16-bit) value in an intthe byte array data)get an unsigned short value from the beginning of a byte array |
| public static int | Returns: the unsigned short (16-bit) value in an integerthe byte array data, int a starting offset into the byte array offset)get an unsigned short value from a byte array |
| public static void | putByte(byte[] data, int offset, int value)
executes:
|
| public static void | putDouble(byte[]
the byte array data, int a starting offset into the byte array offset, double the double (64-bit) value value)put a double value into a byte array |
| public static void | putDouble(double
the double (64-bit) value value, OutputStream output stream outputStream)put a double value into a byte array |
| public static void | putFloat(byte[]
the byte array data, int a starting offset into the byte array offset, float the float (32-bit) value value)put a float value into a byte array |
| public static void | putFloat(float
the float (32-bit) value value, OutputStream output stream outputStream)put a float value into a byte array |
| public static void | putInt(byte[]
the byte array data, int a starting offset into the byte array offset, int the int (32-bit) value value)put an int value into a byte array |
| public static void | putInt(int
the int (32-bit) value value, OutputStream output stream outputStream)Put int into output stream |
| public static void | putLong(byte[]
the byte array data, int a starting offset into the byte array offset, long the long (64-bit) value value)put a long value into a byte array |
| public static void | putLong(long
the long (64-bit) value value, OutputStream output stream outputStream)Put long into output stream |
| public static void | putShort(byte[]
the byte array data, int a starting offset into the byte array offset, short the short (16-bit) value value)put a short value into a byte array |
| public static void | putShort(OutputStream
output stream outputStream, short the short (16-bit) value value)Put signed short into output stream |
| public static void | putShortArray(byte[]
the byte array data, int a starting offset into the byte array startOffset, short[] the short (16-bit) values value)Stores short array in buffer |
| public static void | putUByte(byte[]
the byte array data, int a starting offset into the byte array offset, short the short (16-bit) value value)put an unsigned byte value into a byte array |
| public static void | putUInt(byte[]
the byte array data, int a starting offset into the byte array offset, long the int (32-bit) value value)put an unsigned int value into a byte array |
| public static void | putUInt(long
the int (32-bit) value value, OutputStream output stream outputStream)Put unsigned int into output stream |
| public static void | putUShort(byte[]
the byte array data, int a starting offset into the byte array offset, int the short (16-bit) value value)put an unsigned short value into a byte array |
| public static void | putUShort(int
the unsigned short (16-bit) value value, OutputStream output stream outputStream)Put unsigned short into output stream |
| public static int | Returns: the int (32-bit) valuethe InputStream from which the int is to be read stream)get an int value from an InputStream |
| public static long | Returns: the long (64-bit) valuethe InputStream from which the long is to be read stream)get a long value from an InputStream |
| public static short | Returns: the short (16-bit) valuethe InputStream from which the short is to be read stream)get a short value from an InputStream |
| public static long | Returns: the unsigned int (32-bit) valuethe InputStream from which the int is to be read stream)get an unsigned int value from an InputStream |
| public static int | |
| public static int | Returns: Description of the Return ValueDescription of the Parameter b)Convert an 'unsigned' byte to an integer. |
| LittleEndian | back to summary |
|---|---|
| private LittleEndian() | |
| getDouble | back to summary |
|---|---|
| public static double getDouble(byte[] data) get a double value from a byte array, reads it in little endian format then converts the resulting revolting IEEE 754 (curse them) floating point number to a happy java double
| |
| getDouble | back to summary |
|---|---|
| public static double getDouble(byte[] data, int offset) get a double value from a byte array, reads it in little endian format then converts the resulting revolting IEEE 754 (curse them) floating point number to a happy java double
| |
| getFloat | back to summary |
|---|---|
| public static float getFloat(byte[] data) get a float value from a byte array, reads it in little endian format then converts the resulting revolting IEEE 754 (curse them) floating point number to a happy java float
| |
| getFloat | back to summary |
|---|---|
| public static float getFloat(byte[] data, int offset) get a float value from a byte array, reads it in little endian format then converts the resulting revolting IEEE 754 (curse them) floating point number to a happy java float
| |
| getInt | back to summary |
|---|---|
| public static int getInt(byte[] data) get an int value from the beginning of a byte array
| |
| getInt | back to summary |
|---|---|
| public static int getInt(byte[] data, int offset) get an int value from a byte array
| |
| getLong | back to summary |
|---|---|
| public static long getLong(byte[] data) get a long value from a byte array
| |
| getLong | back to summary |
|---|---|
| public static long getLong(byte[] data, int offset) get a long value from a byte array
| |
| getShort | back to summary |
|---|---|
| public static short getShort(byte[] data) get a short value from the beginning of a byte array
| |
| getShort | back to summary |
|---|---|
| public static short getShort(byte[] data, int offset) get a short value from a byte array
| |
| getShortArray | back to summary |
|---|---|
| public static short[] getShortArray(byte[] data, int offset, int size) Read short array
| |
| getUByte | back to summary |
|---|---|
| public static short getUByte(byte[] data) get the unsigned value of a byte.
| |
| getUByte | back to summary |
|---|---|
| public static short getUByte(byte[] data, int offset) get the unsigned value of a byte.
| |
| getUInt | back to summary |
|---|---|
| public static long getUInt(byte[] data) get an unsigned int value from a byte array
| |
| getUInt | back to summary |
|---|---|
| public static long getUInt(byte[] data, int offset) get an unsigned int value from a byte array
| |
| getUShort | back to summary |
|---|---|
| public static int getUShort(byte[] data) get an unsigned short value from the beginning of a byte array
| |
| getUShort | back to summary |
|---|---|
| public static int getUShort(byte[] data, int offset) get an unsigned short value from a byte array
| |
| putByte | back to summary |
|---|---|
| public static void putByte(byte[] data, int offset, int value) executes:
| |
| putDouble | back to summary |
|---|---|
| public static void putDouble(byte[] data, int offset, double value) put a double value into a byte array
| |
| putDouble | back to summary |
|---|---|
| public static void putDouble(double value, OutputStream outputStream) throws IOException put a double value into a byte array
| |
| putFloat | back to summary |
|---|---|
| public static void putFloat(byte[] data, int offset, float value) put a float value into a byte array
| |
| putFloat | back to summary |
|---|---|
| public static void putFloat(float value, OutputStream outputStream) throws IOException put a float value into a byte array
| |
| putInt | back to summary |
|---|---|
| public static void putInt(byte[] data, int offset, int value) put an int value into a byte array
| |
| putInt | back to summary |
|---|---|
| public static void putInt(int value, OutputStream outputStream) throws IOException Put int into output stream
| |
| putLong | back to summary |
|---|---|
| public static void putLong(byte[] data, int offset, long value) put a long value into a byte array
| |
| putLong | back to summary |
|---|---|
| public static void putLong(long value, OutputStream outputStream) throws IOException Put long into output stream
| |
| putShort | back to summary |
|---|---|
| public static void putShort(byte[] data, int offset, short value) put a short value into a byte array
| |
| putShort | back to summary |
|---|---|
| public static void putShort(OutputStream outputStream, short value) throws IOException Put signed short into output stream
| |
| putShortArray | back to summary |
|---|---|
| public static void putShortArray(byte[] data, int startOffset, short[] value) Stores short array in buffer
| |
| putUByte | back to summary |
|---|---|
| public static void putUByte(byte[] data, int offset, short value) put an unsigned byte value into a byte array
| |
| putUInt | back to summary |
|---|---|
| public static void putUInt(byte[] data, int offset, long value) put an unsigned int value into a byte array
| |
| putUInt | back to summary |
|---|---|
| public static void putUInt(long value, OutputStream outputStream) throws IOException Put unsigned int into output stream
| |
| putUShort | back to summary |
|---|---|
| public static void putUShort(byte[] data, int offset, int value) put an unsigned short value into a byte array
| |
| putUShort | back to summary |
|---|---|
| public static void putUShort(int value, OutputStream outputStream) throws IOException Put unsigned short into output stream
| |
| readInt | back to summary |
|---|---|
| public static int readInt(InputStream stream) throws IOException get an int value from an InputStream
| |
| readLong | back to summary |
|---|---|
| public static long readLong(InputStream stream) throws IOException get a long value from an InputStream
| |
| readShort | back to summary |
|---|---|
| public static short readShort(InputStream stream) throws IOException get a short value from an InputStream
| |
| readUInt | back to summary |
|---|---|
| public static long readUInt(InputStream stream) throws IOException get an unsigned int value from an InputStream
| |
| readUShort | back to summary |
|---|---|
| public static int readUShort(InputStream stream) throws IOException | |
| ubyteToInt | back to summary |
|---|---|
| public static int ubyteToInt(byte b) Convert an 'unsigned' byte to an integer. ie, don't carry across the sign.
| |
| Modifier and Type | Field and Description |
|---|---|
| private static final long | serialVersionUID
Serial version UID
|
| Access | Constructor and Description |
|---|---|
| pack-priv |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID Hides java. Serial version UID
| |
| BufferUnderrunException | back to summary |
|---|---|
| pack-priv BufferUnderrunException() | |