public class ArrayByteSequence extends ByteSequence implements Serializable
Modifier and Type | Field and Description |
---|---|
protected byte[] |
data |
protected int |
length |
protected int |
offset |
Constructor and Description |
---|
ArrayByteSequence(byte[] data) |
ArrayByteSequence(byte[] data,
int offset,
int length) |
ArrayByteSequence(String s) |
Modifier and Type | Method and Description |
---|---|
byte |
byteAt(int i) |
byte[] |
getBackingArray() |
boolean |
isBackedByArray() |
int |
length() |
int |
offset() |
ByteSequence |
subSequence(int start,
int end) |
byte[] |
toArray() |
String |
toString() |
compareBytes, compareTo, equals, hashCode
public ArrayByteSequence(byte[] data)
public ArrayByteSequence(byte[] data, int offset, int length)
public ArrayByteSequence(String s)
public byte byteAt(int i)
byteAt
in class ByteSequence
public byte[] getBackingArray()
getBackingArray
in class ByteSequence
public boolean isBackedByArray()
isBackedByArray
in class ByteSequence
public int length()
length
in class ByteSequence
public int offset()
offset
in class ByteSequence
public ByteSequence subSequence(int start, int end)
subSequence
in class ByteSequence
public byte[] toArray()
toArray
in class ByteSequence
Copyright © 2011-2016 The Apache Software Foundation. All Rights Reserved.