|
Oracle® Fusion Middleware Java API Reference for Oracle Coherence 12c (12.1.3.0.0) E47890-01 |
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ByteSequence
Represents a sequence of bytes.
Method Summary | |
---|---|
byte |
byteAt(int of) Determine the n-th byte of the byte sequence. |
int |
length() Determine the number of bytes of data represented by this ByteSequence. |
ByteSequence |
subSequence(int ofStart, int ofEnd) Returns a new ByteSequence that is a subsequence of this sequence. |
Binary |
toBinary() Returns a Binary object that holds the contents of this ByteSequence. |
Method Detail |
---|
int length()
byte byteAt(int of)
of
- the zero-based byte offset within the sequence of bytes (0 <= of < length()
)java.lang.IndexOutOfBoundsException
- if (of < 0 || of >= ()
)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 byte
s) of the returned sequence is ofEnd - ofStart, so if ofStart == ofEnd then an empty sequence is returned.ofStart
- the start index, inclusiveofEnd
- the end index, exclusivejava.lang.IndexOutOfBoundsException
- if ofStart or ofEnd are negative, if ofEnd is greater than length(), or if ofStart is greater than ofEndBinary toBinary()
|
Oracle® Fusion Middleware Java API Reference for Oracle Coherence 12c (12.1.3.0.0) E47890-01 |
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |