public interface ByteSequence
| Modifier and Type | Field and Description |
|---|---|
static ByteSequence |
EMPTY
An empty byte sequence.
|
| 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.
|
static final ByteSequence EMPTY
int length()
bytes in this sequence.byte byteAt(int index)
byte value at the specified index.index - the index of the byte value to be returned.byte valueIndexOutOfBoundsException - if index < 0 || index >= length().byte[] toByteArray()
Copyright © 2004-2012 The Apache Software Foundation. All Rights Reserved.