public interface ByteArray extends IoAbsoluteReader, IoAbsoluteWriter
| Modifier and Type | Interface and Description |
|---|---|
static interface |
ByteArray.Cursor
Provides relocatable, relative access to the underlying array.
|
| Modifier and Type | Method and Description |
|---|---|
ByteArray.Cursor |
cursor() |
ByteArray.Cursor |
cursor(int index) |
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.
|
int |
first() |
void |
free()
Remove any resources associated with this object.
|
Iterable<IoBuffer> |
getIoBuffers() |
IoBuffer |
getSingleIoBuffer() |
int |
last() |
ByteOrder |
order() |
void |
order(ByteOrder order)
Set the byte order of the array.
|
int first()
int last()
ByteOrder order()
void order(ByteOrder order)
order - The ByteOrder to usevoid free()
Iterable<IoBuffer> getIoBuffers()
IoBuffers that back this array.
Compared to getSingleIoBuffer(), this method should be
relatively efficient for all implementations.IoBuffer getSingleIoBuffer()
IoBuffer that backs this array. Some
implementations may initially have data split across multiple buffers, so
calling this method may require a new buffer to be allocated and
populated.boolean equals(Object other)
ByteArray.Cursor cursor()
ByteArray.Cursor cursor(int index)
index - The starting pointCopyright © 2004–2024 Apache MINA Project. All rights reserved.