public class ByteArraySequence extends java.lang.Object implements ByteSequence
| Constructor and Description |
|---|
ByteArraySequence(byte [] bytes) |
ByteArraySequence(byte [] bytes,
int offset,
int len) |
| Modifier and Type | Method and Description |
|---|---|
byte |
byteAt(int index) |
boolean |
equals(java.lang.Object o) |
byte [] |
getBytes()
Implementation method.
|
int |
getLength()
Implementation method.
|
int |
getOffset()
Implementation method.
|
int |
hashCode() |
int |
length() |
ByteSequence |
subSequence(int start,
int end) |
byte [] |
toBytes() |
java.io.DataInputStream |
toInputStream() |
public ByteArraySequence(byte [] bytes)
public ByteArraySequence(byte [] bytes,
int offset,
int len)
public byte [] getBytes()
public int getOffset()
public int getLength()
public boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic int length()
length in interface ByteSequencepublic byte byteAt(int index)
byteAt in interface ByteSequencepublic ByteSequence subSequence(int start, int end)
subSequence in interface ByteSequencepublic byte [] toBytes()
toBytes in interface ByteSequencepublic java.io.DataInputStream toInputStream()