|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface ByteSequence
An immutable sequence of bytes.
| Field Summary | |
|---|---|
static ByteSequence |
EMPTY
An empty byte sequence. |
| Method Summary | |
|---|---|
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. |
| Field Detail |
|---|
static final ByteSequence EMPTY
| Method Detail |
|---|
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 value
java.lang.IndexOutOfBoundsException - if index < 0 || index >= length().byte[] toByteArray()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||