public class ByteStringBuffer extends Object implements ByteSequence, Comparable, Serializable
| Constructor and Description |
|---|
ByteStringBuffer() |
ByteStringBuffer(int length) |
| Modifier and Type | Method and Description |
|---|---|
ByteStringBuffer |
append(byte b) |
ByteStringBuffer |
append(byte[] b) |
ByteStringBuffer |
append(byte[] b,
int offset,
int length) |
byte |
byteAt(int index)
Returns the byte at the specified index.
|
int |
compareTo(ByteStringBuffer otherByteString)
This comparision is byte by byte and one byte string will be "lesser" or "greater" than
the other based on the byte values at the first position in which they differ.
|
int |
compareTo(Object otherObject) |
void |
ensureCapacity(int minimumCapacity) |
boolean |
equals(Object otherObject) |
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.
|
void |
setByteAt(int index,
byte b) |
ByteSequence |
subSequence(int start,
int end)
Returns a new byte sequence that is a subsequence of this sequence.
|
ByteString |
substring(int begin,
int end) |
public ByteStringBuffer()
public ByteStringBuffer(int length)
length - public byte byteAt(int index)
ByteSequencebyteAt in interface ByteSequenceindex - the index of the character to be returnedpublic int length()
ByteSequencelength in interface ByteSequencepublic ByteSequence subSequence(int start, int end)
ByteSequencesubSequence in interface ByteSequencestart - the start index, inclusiveend - the end index, exclusivepublic ByteString substring(int begin, int end)
begin - the first byte index to include in the substringend - the last byte index to include in the substringbegin to endpublic void getBytes(int srcBegin,
int srcEnd,
byte[] dst,
int dstBegin)
ByteSequencegetBytes in interface ByteSequencesrcBegin - 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 copyingpublic byte[] getBytes()
ByteSequencegetBytes in interface ByteSequencepublic void setByteAt(int index,
byte b)
public ByteStringBuffer append(byte b)
public ByteStringBuffer append(byte[] b)
public ByteStringBuffer append(byte[] b, int offset, int length)
public void ensureCapacity(int minimumCapacity)
public int compareTo(Object otherObject)
compareTo in interface Comparablepublic int compareTo(ByteStringBuffer otherByteString)
otherByteString - Copyright © 2010 - 2020 Adobe. All Rights Reserved