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.Object
public int hashCode()
hashCode
in class java.lang.Object
public int length()
length
in interface ByteSequence
public byte byteAt(int index)
byteAt
in interface ByteSequence
public ByteSequence subSequence(int start, int end)
subSequence
in interface ByteSequence
public byte [] toBytes()
toBytes
in interface ByteSequence
public java.io.DataInputStream toInputStream()