Package org.apache.activemq.util
Class ByteSequence
- java.lang.Object
-
- org.apache.activemq.util.ByteSequence
-
public class ByteSequence extends Object
-
-
Constructor Summary
Constructors Constructor Description ByteSequence()
ByteSequence(byte[] data)
ByteSequence(byte[] data, int offset, int length)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
compact()
byte[]
getData()
int
getLength()
int
getOffset()
int
indexOf(byte value, int pos)
int
indexOf(ByteSequence needle, int pos)
int
remaining()
void
reset()
void
setData(byte[] data)
void
setLength(int length)
void
setOffset(int offset)
boolean
startsWith(byte[] bytes)
-
-
-
Method Detail
-
getData
public byte[] getData()
-
getLength
public int getLength()
-
getOffset
public int getOffset()
-
remaining
public int remaining()
-
setData
public void setData(byte[] data)
-
setLength
public void setLength(int length)
-
setOffset
public void setOffset(int offset)
-
compact
public void compact()
-
reset
public void reset()
-
indexOf
public int indexOf(ByteSequence needle, int pos)
-
indexOf
public final int indexOf(byte value, int pos)
-
startsWith
public boolean startsWith(byte[] bytes)
-
-