| Modifier and Type | Field and Description |
|---|---|
| private static final byte | |
| private final int | |
| private byte |
| Access | Constructor and Description |
|---|---|
| public | ByteField(final int
of the field within its byte array offset)construct the ByteField with its offset into its containing byte array and a default value of 0 |
| public | ByteField(final int
of the field within its byte array offset, final byte the initial value value)construct the ByteField with its offset into its containing byte array and initialize its value |
| public | ByteField(final int
of the field within its byte array offset, final byte[] the byte array to read the value from data)Construct the ByteField with its offset into its containing byte array and initialize its value from its byte array |
| public | ByteField(final int
of the field within its byte array offset, final byte the initial value value, final byte[] the byte array to write the value to data)construct the ByteField with its offset into its containing byte array, initialize its value, and write its value to its byte array |
| Modifier and Type | Method and Description |
|---|---|
| public byte | |
| public void | readFromBytes(final byte[]
the byte array from which the value is to be read data)Implements org. set the value from its offset into an array of bytes |
| public void | readFromStream(final InputStream
the InputStream from which the value is to be
read stream)Implements org. set the value from an InputStream |
| public void | |
| public void | set(final byte
to be set value, final byte[] the byte array to write the value to data)set the ByteField's current value and write it to a byte array |
| public String | Returns: the value as a StringOverrides java. Implements org. return the value as a String |
| public void | writeToBytes(final byte[]
the array of bytes to which the value is to be
written data)Implements org. write the value out to an array of bytes at the appropriate offset |
| _default_value | back to summary |
|---|---|
| private static final byte _default_value | |
| _offset | back to summary |
|---|---|
| private final int _offset | |
| _value | back to summary |
|---|---|
| private byte _value | |
| ByteField | back to summary |
|---|---|
| public ByteField(final int offset) throws ArrayIndexOutOfBoundsException construct the ByteField with its offset into its containing byte array and a default value of 0
| |
| ByteField | back to summary |
|---|---|
| public ByteField(final int offset, final byte value) throws ArrayIndexOutOfBoundsException construct the ByteField with its offset into its containing byte array and initialize its value
| |
| ByteField | back to summary |
|---|---|
| public ByteField(final int offset, final byte[] data) throws ArrayIndexOutOfBoundsException Construct the ByteField with its offset into its containing byte array and initialize its value from its byte array
| |
| ByteField | back to summary |
|---|---|
| public ByteField(final int offset, final byte value, final byte[] data) throws ArrayIndexOutOfBoundsException construct the ByteField with its offset into its containing byte array, initialize its value, and write its value to its byte array
| |
| get | back to summary |
|---|---|
| public byte get() get the ByteField's current value
| |
| readFromBytes | back to summary |
|---|---|
| public void readFromBytes(final byte[] data) throws ArrayIndexOutOfBoundsException Implements org. set the value from its offset into an array of bytes
| |
| readFromStream | back to summary |
|---|---|
| public void readFromStream(final InputStream stream) throws IOException Implements org. set the value from an InputStream
| |
| set | back to summary |
|---|---|
| public void set(final byte value) set the ByteField's current value
| |
| set | back to summary |
|---|---|
| public void set(final byte value, final byte[] data) throws ArrayIndexOutOfBoundsException set the ByteField's current value and write it to a byte array
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Implements org. return the value as a String
| |
| writeToBytes | back to summary |
|---|---|
| public void writeToBytes(final byte[] data) throws ArrayIndexOutOfBoundsException Implements org. write the value out to an array of bytes at the appropriate offset
| |