final class EmptyByteSequence extends java.lang.Object implements ByteSequence
| Modifier and Type | Field and Description |
|---|---|
private static byte[] |
EMPTY_BYTES |
EMPTY| Constructor and Description |
|---|
EmptyByteSequence() |
| Modifier and Type | Method and Description |
|---|---|
byte |
byteAt(int index)
Returns the
byte value at the specified index. |
int |
length()
Returns the length of this byte sequence.
|
byte[] |
toByteArray()
Copies the contents of this byte sequence into a newly allocated byte
array and returns that array.
|
public int length()
ByteSequencelength in interface ByteSequencebytes in this sequence.public byte byteAt(int index)
ByteSequencebyte value at the specified index.byteAt in interface ByteSequenceindex - the index of the byte value to be returned.byte valuepublic byte[] toByteArray()
ByteSequencetoByteArray in interface ByteSequence