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 AbstractByteArray extends Object implements ByteArray
Abstract class that implementsByteArray. This class will only be used internally and should not be used by end users.- Author:
- Apache MINA Project
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.apache.mina.util.byteaccess.ByteArray
ByteArray.Cursor
-
-
Constructor Summary
Constructors Constructor Description AbstractByteArray()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description booleanequals(Object other)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.abstract inthashCode()intlength()-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.apache.mina.util.byteaccess.ByteArray
cursor, cursor, first, free, get, get, getInt, getIoBuffers, getSingleIoBuffer, last, order, order
-
-
-
-
Method Detail
-
length
public final int length()
- Specified by:
lengthin interfaceIoAbsoluteReader- Returns:
- the total number of bytes that can be accessed.
-
equals
public final boolean equals(Object other)
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.
-
-