public abstract class AbstractByteSequence extends Object implements ByteSequence
| Modifier and Type | Class and Description | 
|---|---|
| static class  | AbstractByteSequence.AggregateByteSequenceA naive ByteSequence that glues two ByteSequence instances together. | 
| static class  | AbstractByteSequence.PartialByteSequenceA naive ByteSequence that represents a portion of another ByteSequence. | 
| Constructor and Description | 
|---|
| AbstractByteSequence() | 
| Modifier and Type | Method and Description | 
|---|---|
| boolean | equals(Object o) | 
| int | hashCode() | 
| ByteSequence | subSequence(int ofStart, int ofEnd)Returns a new  ByteSequencethat is a subsequence of this sequence. | 
| Binary | toBinary()Returns a Binary object that holds the contents of this ByteSequence. | 
| String | toString() | 
clone, finalize, getClass, notify, notifyAll, wait, wait, waitbyteAt, lengthpublic ByteSequence subSequence(int ofStart, int ofEnd)
ByteSequence that is a subsequence of this sequence. The subsequence starts with the byte value at the specified index and ends with the byte value at index ofEnd - 1. The length (in bytes) of the returned sequence is ofEnd - ofStart, so if ofStart == ofEnd then an empty sequence is returned.subSequence in interface ByteSequenceofStart - the start index, inclusiveofEnd - the end index, exclusivepublic Binary toBinary()
toBinary in interface ByteSequence