public class ITF8 extends Object
| Constructor | Description |
|---|---|
ITF8() |
| Modifier and Type | Method | Description |
|---|---|---|
static int |
readUnsignedITF8(byte[] data) |
Reads an unsigned (32 bit) integer from an array of bytes.
|
static int |
readUnsignedITF8(InputStream inputStream) |
Reads an unsigned (32 bit) integer from an
InputStream. |
static int |
readUnsignedITF8(ByteBuffer buffer) |
Reads an unsigned (32 bit) integer from a
ByteBuffer. |
static byte[] |
writeUnsignedITF8(int value) |
Writes an unsigned (32 bit) integer to a byte new array encoded as ITF8.
|
static int |
writeUnsignedITF8(int value,
OutputStream outputStream) |
Writes an unsigned (32 bit) integer to an
OutputStream encoded as ITF8. |
static void |
writeUnsignedITF8(int value,
ByteBuffer buffer) |
Writes an unsigned (32 bit) integer to an
OutputStream encoded as ITF8. |
public static int readUnsignedITF8(InputStream inputStream) throws IOException
InputStream. The sign bit should be interpreted as a value bit.inputStream - the stream to read fromIOException - as per java IO contractpublic static int writeUnsignedITF8(int value,
OutputStream outputStream)
throws IOException
OutputStream encoded as ITF8. The sign bit is interpreted as a value bit.value - the value to be written outoutputStream - the stream to write toIOException - as per java IO contractpublic static int readUnsignedITF8(byte[] data)
data - the bytes to read frompublic static byte[] writeUnsignedITF8(int value)
value - the value to be written outpublic static int readUnsignedITF8(ByteBuffer buffer)
ByteBuffer. The sign bit should be interpreted as a value bit.buffer - the bytes to read frompublic static void writeUnsignedITF8(int value,
ByteBuffer buffer)
OutputStream encoded as ITF8. The sign bit is interpreted as a value bit.value - the value to be written outbuffer - the ByteBuffer to write to