Class AbstractByteArray
java.lang.Object
org.apache.mina.util.byteaccess.AbstractByteArray
- All Implemented Interfaces:
ByteArray, IoAbsoluteReader, IoAbsoluteWriter
- Direct Known Subclasses:
BufferByteArray, CompositeByteArray
-
Nested Class Summary
Nested classes/interfaces inherited from interface ByteArray
ByteArray.Cursor -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface 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
-
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.
-