public class ITF8
extends java.lang.Object
| 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 void |
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 int readUnsignedITF8(java.io.InputStream inputStream)
throws java.io.IOException
InputStream. The sign bit should be interpreted as a value bit.inputStream - the stream to read fromjava.io.IOException - as per java IO contractpublic static int writeUnsignedITF8(int value,
java.io.OutputStream outputStream)
throws java.io.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 tojava.io.IOException - 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(java.nio.ByteBuffer buffer)
ByteBuffer. The sign bit should be interpreted as a value bit.buffer - the bytes to read frompublic static void 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 to