Skip navigation links

Oracle® Coherence Java API Reference
Release 12.1.2.0.3

E26043-02


com.tangosol.util
Class AbstractByteSequence.PartialByteSequence

java.lang.Object
  extended by com.tangosol.util.AbstractByteSequence
      extended by com.tangosol.util.AbstractByteSequence.PartialByteSequence

All Implemented Interfaces:
ByteSequence
Enclosing class:
AbstractByteSequence

public static class AbstractByteSequence.PartialByteSequence
extends AbstractByteSequence

A naive ByteSequence that represents a portion of another ByteSequence.

Since:
Coherence 3.7
Author:
cp 2010-06-29

Nested Class Summary

 

Nested classes/interfaces inherited from class com.tangosol.util.AbstractByteSequence
AbstractByteSequence.AggregateByteSequence, AbstractByteSequence.PartialByteSequence

 

Constructor Summary
AbstractByteSequence.PartialByteSequence(ByteSequence seq, int of, int cb)
          Construct a PartialByteSequence from a ByteSequence.

 

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.

 

Methods inherited from class com.tangosol.util.AbstractByteSequence
equals, hashCode, subSequence, toBinary, toString

 

Constructor Detail

AbstractByteSequence.PartialByteSequence

public AbstractByteSequence.PartialByteSequence(ByteSequence seq,
                                                int of,
                                                int cb)
Construct a PartialByteSequence from a ByteSequence.
Parameters:
seq - the ByteSequence
of - the offset within the ByteSequence
cb - the number of bytes from the ByteSequence

Method Detail

length

public int length()
Determine the number of bytes of data represented by this ByteSequence.
Returns:
the number of bytes represented by this Node

byteAt

public byte byteAt(int of)
Determine the n-th byte of the byte sequence.
Parameters:
of - the zero-based byte offset within the sequence of bytes (0 <= of < ByteSequence.length())
Returns:
the byte at the specified offset

Skip navigation links

Oracle® Coherence Java API Reference
Release 12.1.2.0.3

E26043-02


Copyright © 2000, 2014, Oracle and/or its affiliates. All rights reserved.