Package org.apache.mina.util.byteaccess
Class AbstractByteArray
java.lang.Object
org.apache.mina.util.byteaccess.AbstractByteArray
- All Implemented Interfaces:
ByteArray,IoAbsoluteReader,IoAbsoluteWriter
- Direct Known Subclasses:
BufferByteArray,CompositeByteArray
Abstract class that implements
ByteArray. This class will only be
used internally and should not be used by end users.-
Nested Class Summary
Nested classes/interfaces inherited from interface org.apache.mina.util.byteaccess.ByteArray
ByteArray.Cursor -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.mina.util.byteaccess.ByteArray
cursor, cursor, first, free, get, get, getInt, getIoBuffers, getSingleIoBuffer, last, order, order
-
Constructor Details
-
AbstractByteArray
AbstractByteArray()
-
-
Method Details
-
length
public final int length()- Specified by:
lengthin interfaceIoAbsoluteReader- Returns:
- the total number of bytes that can be accessed.
-
hashCode
public abstract int hashCode() -
equals
A ByteArray is equal to another ByteArray if they start and end at the same index, have the same byte order, and contain the same bytes at each index.
-