public class ITF8
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static int |
MAX_BYTES |
| Constructor and Description |
|---|
ITF8() |
| Modifier and Type | Method and Description |
|---|---|
static int |
readUnsignedITF8(byte[] data)
Reads an unsigned (32 bit) integer from an array of bytes.
|
static int |
readUnsignedITF8(java.nio.ByteBuffer buffer)
Reads an unsigned (32 bit) integer from a
ByteBuffer. |
static int |
readUnsignedITF8(java.io.InputStream inputStream)
Reads an unsigned (32 bit) integer from an
InputStream. |
static byte[] |
writeUnsignedITF8(int value)
Writes an unsigned (32 bit) integer to a byte new array encoded as ITF8.
|
static int |
writeUnsignedITF8(int value,
java.nio.ByteBuffer buffer)
Writes an unsigned (32 bit) integer to an
OutputStream encoded as ITF8. |
static int |
writeUnsignedITF8(int value,
java.io.OutputStream outputStream)
Writes an unsigned (32 bit) integer to an
OutputStream encoded as ITF8. |
public static final int MAX_BYTES
public static int readUnsignedITF8(java.io.InputStream inputStream)
InputStream. The sign bit should be interpreted as a value bit.inputStream - the stream to read frompublic static int readUnsignedITF8(java.nio.ByteBuffer buffer)
ByteBuffer. The sign bit should be interpreted as a value bit.buffer - the bytes to read frompublic static int readUnsignedITF8(byte[] data)
data - the bytes to read frompublic static int writeUnsignedITF8(int value,
java.io.OutputStream outputStream)
OutputStream encoded as ITF8. The sign bit is interpreted as a value bit.value - the value to be written outoutputStream - the stream to write topublic static int writeUnsignedITF8(int value,
java.nio.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 topublic static byte[] writeUnsignedITF8(int value)
value - the value to be written out