public interface ByteSequence
| Modifier and Type | Method and Description |
|---|---|
byte |
byteAt(int index)
Returns the byte at the specified index.
|
byte[] |
getBytes()
Returns a byte array containing the bytes in this sequence in the same
order as this sequence.
|
void |
getBytes(int srcBegin,
int srcEnd,
byte[] dst,
int dstBegin)
Returns a byte array containing the bytes in this sequence in the same
order as this sequence and within the bounds given.
|
int |
length()
Returns the length of this byte sequence.
|
ByteSequence |
subSequence(int start,
int end)
Returns a new byte sequence that is a subsequence of this sequence.
|
byte byteAt(int index)
index - the index of the character to be returnedIndexOutOfBoundsException - if the index argument is negative or not less than
length()int length()
ByteSequence subSequence(int start, int end)
start - the start index, inclusiveend - the end index, exclusiveIndexOutOfBoundsException - if start or end are negative,
if end is greater than length(),
or if start is greater than endbyte[] getBytes()
void getBytes(int srcBegin,
int srcEnd,
byte[] dst,
int dstBegin)
srcBegin - the byte to start copying fromsrcEnd - the byte to end copying atdst - the destination to copy the bytes todstBegin - the byte in the destination to begin the copyingCopyright © 2010 - 2020 Adobe. All Rights Reserved