Package | Description |
---|---|
org.apache.mina.core.buffer | |
org.apache.mina.core.polling |
Base class for implementing transport based on active polling strategies like NIO select call, or any API
based on I/O polling system calls (epoll, poll, select, kqueue, etc).
|
org.apache.mina.filter.buffer | |
org.apache.mina.filter.codec |
Filter implementations that helps you to implement complex protocols
via 'codec' concept.
|
org.apache.mina.filter.codec.demux |
Protocol codecs that helps you to implement even more complex protocols by
splitting a codec into multiple sub-codecs.
|
org.apache.mina.filter.codec.prefixedstring | |
org.apache.mina.filter.codec.serialization |
Protocol codecs which uses Java object serilization and leads to rapid protocol
implementation.
|
org.apache.mina.filter.codec.statemachine | |
org.apache.mina.filter.codec.textline |
A protocol codec for text-based protocols.
|
org.apache.mina.filter.stream |
Stream based IoFilter implementation.
|
org.apache.mina.proxy | |
org.apache.mina.proxy.filter | |
org.apache.mina.proxy.handlers.http | |
org.apache.mina.proxy.handlers.socks | |
org.apache.mina.proxy.utils | |
org.apache.mina.transport.socket.apr | |
org.apache.mina.transport.socket.nio |
Socket (TCP/IP) and Datagram (UDP/IP) support based on Java
NIO (New I/O) API.
|
org.apache.mina.util.byteaccess |
Modifier and Type | Class and Description |
---|---|
class |
AbstractIoBuffer
A base implementation of
IoBuffer . |
class |
IoBufferWrapper
A
IoBuffer that wraps a buffer and proxies any operations to it. |
Modifier and Type | Method and Description |
---|---|
static IoBuffer |
IoBuffer.allocate(int capacity)
Returns the direct or heap buffer which is capable to store the specified
amount of bytes.
|
static IoBuffer |
IoBuffer.allocate(int capacity,
boolean direct)
Returns the buffer which is capable of the specified size.
|
IoBuffer |
IoBufferAllocator.allocate(int capacity,
boolean direct)
Returns the buffer which is capable of the specified size.
|
IoBuffer |
SimpleBufferAllocator.allocate(int capacity,
boolean direct) |
IoBuffer |
CachedBufferAllocator.allocate(int requestedCapacity,
boolean direct) |
abstract IoBuffer |
IoBuffer.asReadOnlyBuffer() |
IoBuffer |
IoBufferWrapper.asReadOnlyBuffer() |
IoBuffer |
AbstractIoBuffer.asReadOnlyBuffer() |
protected abstract IoBuffer |
AbstractIoBuffer.asReadOnlyBuffer0()
Implement this method to return the unexpandable read only version of
this buffer.
|
abstract IoBuffer |
IoBuffer.capacity(int newCapacity)
Increases the capacity of this buffer.
|
IoBuffer |
IoBufferWrapper.capacity(int newCapacity) |
IoBuffer |
AbstractIoBuffer.capacity(int newCapacity)
Increases the capacity of this buffer.
|
abstract IoBuffer |
IoBuffer.clear() |
IoBuffer |
IoBufferWrapper.clear() |
IoBuffer |
AbstractIoBuffer.clear() |
abstract IoBuffer |
IoBuffer.compact() |
IoBuffer |
IoBufferWrapper.compact() |
IoBuffer |
AbstractIoBuffer.compact() |
abstract IoBuffer |
IoBuffer.duplicate() |
IoBuffer |
IoBufferWrapper.duplicate() |
IoBuffer |
AbstractIoBuffer.duplicate() |
protected abstract IoBuffer |
AbstractIoBuffer.duplicate0()
Implement this method to return the unexpandable duplicate of this
buffer.
|
abstract IoBuffer |
IoBuffer.expand(int expectedRemaining)
Changes the capacity and limit of this buffer so this buffer get the
specified expectedRemaining room from the current position.
|
IoBuffer |
IoBufferWrapper.expand(int expectedRemaining) |
IoBuffer |
AbstractIoBuffer.expand(int expectedRemaining)
Changes the capacity and limit of this buffer so this buffer get the
specified expectedRemaining room from the current position.
|
abstract IoBuffer |
IoBuffer.expand(int position,
int expectedRemaining)
Changes the capacity and limit of this buffer so this buffer get the
specified expectedRemaining room from the specified
position.
|
IoBuffer |
IoBufferWrapper.expand(int pos,
int expectedRemaining) |
IoBuffer |
AbstractIoBuffer.expand(int pos,
int expectedRemaining)
Changes the capacity and limit of this buffer so this buffer get the
specified expectedRemaining room from the specified
position.
|
abstract IoBuffer |
IoBuffer.fill(byte value,
int size)
Fills this buffer with the specified value.
|
IoBuffer |
IoBufferWrapper.fill(byte value,
int size) |
IoBuffer |
AbstractIoBuffer.fill(byte value,
int size)
Fills this buffer with the specified value.
|
abstract IoBuffer |
IoBuffer.fill(int size)
Fills this buffer with
NUL (0x00) . |
IoBuffer |
IoBufferWrapper.fill(int size) |
IoBuffer |
AbstractIoBuffer.fill(int size)
Fills this buffer with
NUL (0x00) . |
abstract IoBuffer |
IoBuffer.fillAndReset(byte value,
int size)
Fills this buffer with the specified value.
|
IoBuffer |
IoBufferWrapper.fillAndReset(byte value,
int size) |
IoBuffer |
AbstractIoBuffer.fillAndReset(byte value,
int size)
Fills this buffer with the specified value.
|
abstract IoBuffer |
IoBuffer.fillAndReset(int size)
Fills this buffer with
NUL (0x00) . |
IoBuffer |
IoBufferWrapper.fillAndReset(int size) |
IoBuffer |
AbstractIoBuffer.fillAndReset(int size)
Fills this buffer with
NUL (0x00) . |
abstract IoBuffer |
IoBuffer.flip() |
IoBuffer |
IoBufferWrapper.flip() |
IoBuffer |
AbstractIoBuffer.flip() |
abstract IoBuffer |
IoBuffer.get(byte[] dst) |
IoBuffer |
IoBufferWrapper.get(byte[] dst) |
IoBuffer |
AbstractIoBuffer.get(byte[] dst) |
abstract IoBuffer |
IoBuffer.get(byte[] dst,
int offset,
int length) |
IoBuffer |
IoBufferWrapper.get(byte[] dst,
int offset,
int length) |
IoBuffer |
AbstractIoBuffer.get(byte[] dst,
int offset,
int length) |
IoBuffer |
IoBufferWrapper.getParentBuffer()
Returns the parent buffer that this buffer wrapped.
|
abstract IoBuffer |
IoBuffer.getSlice(int length)
TODO document me.
|
IoBuffer |
IoBufferWrapper.getSlice(int length) |
IoBuffer |
AbstractIoBuffer.getSlice(int length)
TODO document me.
|
abstract IoBuffer |
IoBuffer.getSlice(int index,
int length)
TODO document me.
|
IoBuffer |
IoBufferWrapper.getSlice(int index,
int length) |
IoBuffer |
AbstractIoBuffer.getSlice(int index,
int length)
TODO document me.
|
abstract IoBuffer |
IoBuffer.limit(int newLimit) |
IoBuffer |
IoBufferWrapper.limit(int newLimit) |
IoBuffer |
AbstractIoBuffer.limit(int newLimit) |
abstract IoBuffer |
IoBuffer.mark() |
IoBuffer |
IoBufferWrapper.mark() |
IoBuffer |
AbstractIoBuffer.mark() |
abstract IoBuffer |
IoBuffer.minimumCapacity(int minimumCapacity)
|
IoBuffer |
IoBufferWrapper.minimumCapacity(int minimumCapacity) |
IoBuffer |
AbstractIoBuffer.minimumCapacity(int minimumCapacity)
|
abstract IoBuffer |
IoBuffer.order(java.nio.ByteOrder bo) |
IoBuffer |
IoBufferWrapper.order(java.nio.ByteOrder bo) |
IoBuffer |
AbstractIoBuffer.order(java.nio.ByteOrder bo) |
abstract IoBuffer |
IoBuffer.position(int newPosition) |
IoBuffer |
IoBufferWrapper.position(int newPosition) |
IoBuffer |
AbstractIoBuffer.position(int newPosition) |
abstract IoBuffer |
IoBuffer.put(byte b) |
IoBuffer |
IoBufferWrapper.put(byte b) |
IoBuffer |
AbstractIoBuffer.put(byte b) |
abstract IoBuffer |
IoBuffer.put(byte[] src) |
IoBuffer |
IoBufferWrapper.put(byte[] src) |
IoBuffer |
AbstractIoBuffer.put(byte[] src) |
abstract IoBuffer |
IoBuffer.put(byte[] src,
int offset,
int length) |
IoBuffer |
IoBufferWrapper.put(byte[] src,
int offset,
int length) |
IoBuffer |
AbstractIoBuffer.put(byte[] src,
int offset,
int length) |
abstract IoBuffer |
IoBuffer.put(java.nio.ByteBuffer src)
Writes the content of the specified src into this buffer.
|
IoBuffer |
IoBufferWrapper.put(java.nio.ByteBuffer src) |
IoBuffer |
AbstractIoBuffer.put(java.nio.ByteBuffer src)
Writes the content of the specified src into this buffer.
|
abstract IoBuffer |
IoBuffer.put(int index,
byte b) |
IoBuffer |
IoBufferWrapper.put(int index,
byte b) |
IoBuffer |
AbstractIoBuffer.put(int index,
byte b) |
abstract IoBuffer |
IoBuffer.put(IoBuffer src)
Writes the content of the specified src into this buffer.
|
IoBuffer |
IoBufferWrapper.put(IoBuffer src) |
IoBuffer |
AbstractIoBuffer.put(IoBuffer src)
Writes the content of the specified src into this buffer.
|
abstract IoBuffer |
IoBuffer.putChar(char value) |
IoBuffer |
IoBufferWrapper.putChar(char value) |
IoBuffer |
AbstractIoBuffer.putChar(char value) |
abstract IoBuffer |
IoBuffer.putChar(int index,
char value) |
IoBuffer |
IoBufferWrapper.putChar(int index,
char value) |
IoBuffer |
AbstractIoBuffer.putChar(int index,
char value) |
abstract IoBuffer |
IoBuffer.putDouble(double value) |
IoBuffer |
IoBufferWrapper.putDouble(double value) |
IoBuffer |
AbstractIoBuffer.putDouble(double value) |
abstract IoBuffer |
IoBuffer.putDouble(int index,
double value) |
IoBuffer |
IoBufferWrapper.putDouble(int index,
double value) |
IoBuffer |
AbstractIoBuffer.putDouble(int index,
double value) |
abstract IoBuffer |
IoBuffer.putEnum(java.lang.Enum<?> e)
Writes an enum's ordinal value to the buffer as a byte.
|
IoBuffer |
IoBufferWrapper.putEnum(java.lang.Enum<?> e) |
IoBuffer |
AbstractIoBuffer.putEnum(java.lang.Enum<?> e)
Writes an enum's ordinal value to the buffer as a byte.
|
abstract IoBuffer |
IoBuffer.putEnum(int index,
java.lang.Enum<?> e)
Writes an enum's ordinal value to the buffer as a byte.
|
IoBuffer |
IoBufferWrapper.putEnum(int index,
java.lang.Enum<?> e) |
IoBuffer |
AbstractIoBuffer.putEnum(int index,
java.lang.Enum<?> e)
Writes an enum's ordinal value to the buffer as a byte.
|
abstract IoBuffer |
IoBuffer.putEnumInt(java.lang.Enum<?> e)
Writes an enum's ordinal value to the buffer as an integer.
|
IoBuffer |
IoBufferWrapper.putEnumInt(java.lang.Enum<?> e) |
IoBuffer |
AbstractIoBuffer.putEnumInt(java.lang.Enum<?> e)
Writes an enum's ordinal value to the buffer as an integer.
|
abstract IoBuffer |
IoBuffer.putEnumInt(int index,
java.lang.Enum<?> e)
Writes an enum's ordinal value to the buffer as an integer.
|
IoBuffer |
IoBufferWrapper.putEnumInt(int index,
java.lang.Enum<?> e) |
IoBuffer |
AbstractIoBuffer.putEnumInt(int index,
java.lang.Enum<?> e)
Writes an enum's ordinal value to the buffer as an integer.
|
abstract <E extends java.lang.Enum<E>> |
IoBuffer.putEnumSet(int index,
java.util.Set<E> set)
Writes the specified
Set to the buffer as a byte sized bit
vector. |
<E extends java.lang.Enum<E>> |
IoBufferWrapper.putEnumSet(int index,
java.util.Set<E> set) |
<E extends java.lang.Enum<E>> |
AbstractIoBuffer.putEnumSet(int index,
java.util.Set<E> set)
Writes the specified
Set to the buffer as a byte sized bit
vector. |
abstract <E extends java.lang.Enum<E>> |
IoBuffer.putEnumSet(java.util.Set<E> set)
Writes the specified
Set to the buffer as a byte sized bit
vector. |
<E extends java.lang.Enum<E>> |
IoBufferWrapper.putEnumSet(java.util.Set<E> set) |
<E extends java.lang.Enum<E>> |
AbstractIoBuffer.putEnumSet(java.util.Set<E> set)
Writes the specified
Set to the buffer as a byte sized bit
vector. |
abstract <E extends java.lang.Enum<E>> |
IoBuffer.putEnumSetInt(int index,
java.util.Set<E> set)
Writes the specified
Set to the buffer as an int sized bit
vector. |
<E extends java.lang.Enum<E>> |
IoBufferWrapper.putEnumSetInt(int index,
java.util.Set<E> set) |
<E extends java.lang.Enum<E>> |
AbstractIoBuffer.putEnumSetInt(int index,
java.util.Set<E> set)
Writes the specified
Set to the buffer as an int sized bit
vector. |
abstract <E extends java.lang.Enum<E>> |
IoBuffer.putEnumSetInt(java.util.Set<E> set)
Writes the specified
Set to the buffer as an int sized bit
vector. |
<E extends java.lang.Enum<E>> |
IoBufferWrapper.putEnumSetInt(java.util.Set<E> set) |
<E extends java.lang.Enum<E>> |
AbstractIoBuffer.putEnumSetInt(java.util.Set<E> set)
Writes the specified
Set to the buffer as an int sized bit
vector. |
abstract <E extends java.lang.Enum<E>> |
IoBuffer.putEnumSetLong(int index,
java.util.Set<E> set)
Writes the specified
Set to the buffer as a long sized bit
vector. |
<E extends java.lang.Enum<E>> |
IoBufferWrapper.putEnumSetLong(int index,
java.util.Set<E> set) |
<E extends java.lang.Enum<E>> |
AbstractIoBuffer.putEnumSetLong(int index,
java.util.Set<E> set)
Writes the specified
Set to the buffer as a long sized bit
vector. |
abstract <E extends java.lang.Enum<E>> |
IoBuffer.putEnumSetLong(java.util.Set<E> set)
Writes the specified
Set to the buffer as a long sized bit
vector. |
<E extends java.lang.Enum<E>> |
IoBufferWrapper.putEnumSetLong(java.util.Set<E> set) |
<E extends java.lang.Enum<E>> |
AbstractIoBuffer.putEnumSetLong(java.util.Set<E> set)
Writes the specified
Set to the buffer as a long sized bit
vector. |
abstract <E extends java.lang.Enum<E>> |
IoBuffer.putEnumSetShort(int index,
java.util.Set<E> set)
Writes the specified
Set to the buffer as a short sized bit
vector. |
<E extends java.lang.Enum<E>> |
IoBufferWrapper.putEnumSetShort(int index,
java.util.Set<E> set) |
<E extends java.lang.Enum<E>> |
AbstractIoBuffer.putEnumSetShort(int index,
java.util.Set<E> set)
Writes the specified
Set to the buffer as a short sized bit
vector. |
abstract <E extends java.lang.Enum<E>> |
IoBuffer.putEnumSetShort(java.util.Set<E> set)
Writes the specified
Set to the buffer as a short sized bit
vector. |
<E extends java.lang.Enum<E>> |
IoBufferWrapper.putEnumSetShort(java.util.Set<E> set) |
<E extends java.lang.Enum<E>> |
AbstractIoBuffer.putEnumSetShort(java.util.Set<E> set)
Writes the specified
Set to the buffer as a short sized bit
vector. |
abstract IoBuffer |
IoBuffer.putEnumShort(java.lang.Enum<?> e)
Writes an enum's ordinal value to the buffer as a short.
|
IoBuffer |
IoBufferWrapper.putEnumShort(java.lang.Enum<?> e) |
IoBuffer |
AbstractIoBuffer.putEnumShort(java.lang.Enum<?> e)
Writes an enum's ordinal value to the buffer as a short.
|
abstract IoBuffer |
IoBuffer.putEnumShort(int index,
java.lang.Enum<?> e)
Writes an enum's ordinal value to the buffer as a short.
|
IoBuffer |
IoBufferWrapper.putEnumShort(int index,
java.lang.Enum<?> e) |
IoBuffer |
AbstractIoBuffer.putEnumShort(int index,
java.lang.Enum<?> e)
Writes an enum's ordinal value to the buffer as a short.
|
abstract IoBuffer |
IoBuffer.putFloat(float value) |
IoBuffer |
IoBufferWrapper.putFloat(float value) |
IoBuffer |
AbstractIoBuffer.putFloat(float value) |
abstract IoBuffer |
IoBuffer.putFloat(int index,
float value) |
IoBuffer |
IoBufferWrapper.putFloat(int index,
float value) |
IoBuffer |
AbstractIoBuffer.putFloat(int index,
float value) |
abstract IoBuffer |
IoBuffer.putInt(int value) |
IoBuffer |
IoBufferWrapper.putInt(int value) |
IoBuffer |
AbstractIoBuffer.putInt(int value) |
abstract IoBuffer |
IoBuffer.putInt(int index,
int value) |
IoBuffer |
IoBufferWrapper.putInt(int index,
int value) |
IoBuffer |
AbstractIoBuffer.putInt(int index,
int value) |
abstract IoBuffer |
IoBuffer.putLong(int index,
long value) |
IoBuffer |
IoBufferWrapper.putLong(int index,
long value) |
IoBuffer |
AbstractIoBuffer.putLong(int index,
long value) |
abstract IoBuffer |
IoBuffer.putLong(long value) |
IoBuffer |
IoBufferWrapper.putLong(long value) |
IoBuffer |
AbstractIoBuffer.putLong(long value) |
abstract IoBuffer |
IoBuffer.putMediumInt(int value)
Relative put method for writing a medium int value.
|
IoBuffer |
IoBufferWrapper.putMediumInt(int value) |
IoBuffer |
AbstractIoBuffer.putMediumInt(int value)
Relative put method for writing a medium int value.
|
abstract IoBuffer |
IoBuffer.putMediumInt(int index,
int value)
Absolute put method for writing a medium int value.
|
IoBuffer |
IoBufferWrapper.putMediumInt(int index,
int value) |
IoBuffer |
AbstractIoBuffer.putMediumInt(int index,
int value)
Absolute put method for writing a medium int value.
|
abstract IoBuffer |
IoBuffer.putObject(java.lang.Object o)
Writes the specified Java object to the buffer.
|
IoBuffer |
IoBufferWrapper.putObject(java.lang.Object o) |
IoBuffer |
AbstractIoBuffer.putObject(java.lang.Object o)
Writes the specified Java object to the buffer.
|
abstract IoBuffer |
IoBuffer.putPrefixedString(java.lang.CharSequence in,
java.nio.charset.CharsetEncoder encoder)
Writes the content of
in into this buffer as a string which
has a 16-bit length field before the actual encoded string, using the
specified encoder . |
IoBuffer |
IoBufferWrapper.putPrefixedString(java.lang.CharSequence in,
java.nio.charset.CharsetEncoder encoder) |
IoBuffer |
AbstractIoBuffer.putPrefixedString(java.lang.CharSequence in,
java.nio.charset.CharsetEncoder encoder)
Writes the content of
in into this buffer as a string which
has a 16-bit length field before the actual encoded string, using the
specified encoder . |
abstract IoBuffer |
IoBuffer.putPrefixedString(java.lang.CharSequence in,
int prefixLength,
java.nio.charset.CharsetEncoder encoder)
Writes the content of
in into this buffer as a string which
has a 16-bit length field before the actual encoded string, using the
specified encoder . |
IoBuffer |
IoBufferWrapper.putPrefixedString(java.lang.CharSequence in,
int prefixLength,
java.nio.charset.CharsetEncoder encoder) |
IoBuffer |
AbstractIoBuffer.putPrefixedString(java.lang.CharSequence in,
int prefixLength,
java.nio.charset.CharsetEncoder encoder)
Writes the content of
in into this buffer as a string which
has a 16-bit length field before the actual encoded string, using the
specified encoder . |
abstract IoBuffer |
IoBuffer.putPrefixedString(java.lang.CharSequence val,
int prefixLength,
int padding,
byte padValue,
java.nio.charset.CharsetEncoder encoder)
Writes the content of
in into this buffer as a string which
has a 16-bit length field before the actual encoded string, using the
specified encoder . |
IoBuffer |
IoBufferWrapper.putPrefixedString(java.lang.CharSequence in,
int prefixLength,
int padding,
byte padValue,
java.nio.charset.CharsetEncoder encoder) |
IoBuffer |
AbstractIoBuffer.putPrefixedString(java.lang.CharSequence val,
int prefixLength,
int padding,
byte padValue,
java.nio.charset.CharsetEncoder encoder)
Writes the content of
in into this buffer as a string which
has a 16-bit length field before the actual encoded string, using the
specified encoder . |
abstract IoBuffer |
IoBuffer.putPrefixedString(java.lang.CharSequence in,
int prefixLength,
int padding,
java.nio.charset.CharsetEncoder encoder)
Writes the content of
in into this buffer as a string which
has a 16-bit length field before the actual encoded string, using the
specified encoder . |
IoBuffer |
IoBufferWrapper.putPrefixedString(java.lang.CharSequence in,
int prefixLength,
int padding,
java.nio.charset.CharsetEncoder encoder) |
IoBuffer |
AbstractIoBuffer.putPrefixedString(java.lang.CharSequence in,
int prefixLength,
int padding,
java.nio.charset.CharsetEncoder encoder)
Writes the content of
in into this buffer as a string which
has a 16-bit length field before the actual encoded string, using the
specified encoder . |
abstract IoBuffer |
IoBuffer.putShort(int index,
short value) |
IoBuffer |
IoBufferWrapper.putShort(int index,
short value) |
IoBuffer |
AbstractIoBuffer.putShort(int index,
short value) |
abstract IoBuffer |
IoBuffer.putShort(short value) |
IoBuffer |
IoBufferWrapper.putShort(short value) |
IoBuffer |
AbstractIoBuffer.putShort(short value) |
abstract IoBuffer |
IoBuffer.putString(java.lang.CharSequence val,
java.nio.charset.CharsetEncoder encoder)
Writes the content of
in into this buffer using the
specified encoder . |
IoBuffer |
IoBufferWrapper.putString(java.lang.CharSequence in,
java.nio.charset.CharsetEncoder encoder) |
IoBuffer |
AbstractIoBuffer.putString(java.lang.CharSequence val,
java.nio.charset.CharsetEncoder encoder)
Writes the content of
in into this buffer using the
specified encoder . |
abstract IoBuffer |
IoBuffer.putString(java.lang.CharSequence val,
int fieldSize,
java.nio.charset.CharsetEncoder encoder)
Writes the content of
in into this buffer as a
NUL -terminated string using the specified
encoder . |
IoBuffer |
IoBufferWrapper.putString(java.lang.CharSequence in,
int fieldSize,
java.nio.charset.CharsetEncoder encoder) |
IoBuffer |
AbstractIoBuffer.putString(java.lang.CharSequence val,
int fieldSize,
java.nio.charset.CharsetEncoder encoder)
Writes the content of
in into this buffer as a
NUL -terminated string using the specified
encoder . |
abstract IoBuffer |
IoBuffer.reset() |
IoBuffer |
IoBufferWrapper.reset() |
IoBuffer |
AbstractIoBuffer.reset() |
abstract IoBuffer |
IoBuffer.rewind() |
IoBuffer |
IoBufferWrapper.rewind() |
IoBuffer |
AbstractIoBuffer.rewind() |
abstract IoBuffer |
IoBuffer.setAutoExpand(boolean autoExpand)
Turns on or off autoExpand.
|
IoBuffer |
IoBufferWrapper.setAutoExpand(boolean autoExpand) |
IoBuffer |
AbstractIoBuffer.setAutoExpand(boolean autoExpand)
Turns on or off autoExpand.
|
abstract IoBuffer |
IoBuffer.setAutoShrink(boolean autoShrink)
Turns on or off autoShrink.
|
IoBuffer |
IoBufferWrapper.setAutoShrink(boolean autoShrink) |
IoBuffer |
AbstractIoBuffer.setAutoShrink(boolean autoShrink)
Turns on or off autoShrink.
|
abstract IoBuffer |
IoBuffer.shrink()
Changes the capacity of this buffer so this buffer occupies as less
memory as possible while retaining the position, limit and the buffer
content between the position and limit.
|
IoBuffer |
IoBufferWrapper.shrink() |
IoBuffer |
AbstractIoBuffer.shrink()
Changes the capacity of this buffer so this buffer occupies as less
memory as possible while retaining the position, limit and the buffer
content between the position and limit.
|
abstract IoBuffer |
IoBuffer.skip(int size)
Forwards the position of this buffer as the specified
size
bytes. |
IoBuffer |
IoBufferWrapper.skip(int size) |
IoBuffer |
AbstractIoBuffer.skip(int size)
Forwards the position of this buffer as the specified
size
bytes. |
abstract IoBuffer |
IoBuffer.slice() |
IoBuffer |
IoBufferWrapper.slice() |
IoBuffer |
AbstractIoBuffer.slice() |
protected abstract IoBuffer |
AbstractIoBuffer.slice0()
Implement this method to return the unexpandable slice of this
buffer.
|
abstract IoBuffer |
IoBuffer.sweep()
Clears this buffer and fills its content with NUL.
|
IoBuffer |
IoBufferWrapper.sweep() |
IoBuffer |
AbstractIoBuffer.sweep()
Clears this buffer and fills its content with NUL.
|
abstract IoBuffer |
IoBuffer.sweep(byte value)
double Clears this buffer and fills its content with value.
|
IoBuffer |
IoBufferWrapper.sweep(byte value) |
IoBuffer |
AbstractIoBuffer.sweep(byte value)
double Clears this buffer and fills its content with value.
|
static IoBuffer |
IoBuffer.wrap(byte[] byteArray)
Wraps the specified byte array into MINA heap buffer.
|
static IoBuffer |
IoBuffer.wrap(byte[] byteArray,
int offset,
int length)
Wraps the specified byte array into MINA heap buffer.
|
static IoBuffer |
IoBuffer.wrap(java.nio.ByteBuffer nioBuffer)
Wraps the specified NIO
ByteBuffer into MINA buffer. |
IoBuffer |
IoBufferAllocator.wrap(java.nio.ByteBuffer nioBuffer)
Wraps the specified NIO
ByteBuffer into MINA buffer. |
IoBuffer |
SimpleBufferAllocator.wrap(java.nio.ByteBuffer nioBuffer) |
IoBuffer |
CachedBufferAllocator.wrap(java.nio.ByteBuffer nioBuffer) |
Modifier and Type | Method and Description |
---|---|
int |
IoBufferWrapper.compareTo(IoBuffer that) |
int |
AbstractIoBuffer.compareTo(IoBuffer that) |
abstract IoBuffer |
IoBuffer.put(IoBuffer src)
Writes the content of the specified src into this buffer.
|
IoBuffer |
IoBufferWrapper.put(IoBuffer src) |
IoBuffer |
AbstractIoBuffer.put(IoBuffer src)
Writes the content of the specified src into this buffer.
|
Constructor and Description |
---|
IoBufferWrapper(IoBuffer buf)
Create a new instance.
|
Modifier and Type | Method and Description |
---|---|
protected abstract int |
AbstractPollingIoProcessor.read(S session,
IoBuffer buf)
|
protected abstract java.net.SocketAddress |
AbstractPollingConnectionlessIoAcceptor.receive(H handle,
IoBuffer buffer) |
protected abstract int |
AbstractPollingConnectionlessIoAcceptor.send(S session,
IoBuffer buffer,
java.net.SocketAddress remoteAddress) |
protected abstract int |
AbstractPollingIoProcessor.write(S session,
IoBuffer buf,
int length)
Write a sequence of bytes to a
IoSession , means to be called when
a session was found ready for writing. |
Modifier and Type | Method and Description |
---|---|
IoBuffer |
IoBufferLazyInitializer.init()
Initializes the value.
|
Constructor and Description |
---|
BufferedWriteFilter(int bufferSize,
LazyInitializedCacheMap<IoSession,IoBuffer> buffersMap)
Constructor which sets buffer size to
bufferSize . |
Modifier and Type | Method and Description |
---|---|
void |
CumulativeProtocolDecoder.decode(IoSession session,
IoBuffer in,
ProtocolDecoderOutput out)
Cumulates content of in into internal buffer and forwards
decoding request to
CumulativeProtocolDecoder.doDecode(IoSession, IoBuffer, ProtocolDecoderOutput) . |
void |
ProtocolDecoder.decode(IoSession session,
IoBuffer in,
ProtocolDecoderOutput out)
Decodes binary or protocol-specific content into higher-level message objects.
|
void |
SynchronizedProtocolDecoder.decode(IoSession session,
IoBuffer in,
ProtocolDecoderOutput out) |
protected abstract boolean |
CumulativeProtocolDecoder.doDecode(IoSession session,
IoBuffer in,
ProtocolDecoderOutput out)
Implement this method to consume the specified cumulative buffer and
decode its content into message(s).
|
Modifier and Type | Method and Description |
---|---|
MessageDecoderResult |
MessageDecoder.decodable(IoSession session,
IoBuffer in)
Checks the specified buffer is decodable by this decoder.
|
MessageDecoderResult |
MessageDecoder.decode(IoSession session,
IoBuffer in,
ProtocolDecoderOutput out)
Decodes binary or protocol-specific content into higher-level message objects.
|
protected boolean |
DemuxingProtocolDecoder.doDecode(IoSession session,
IoBuffer in,
ProtocolDecoderOutput out) |
Modifier and Type | Method and Description |
---|---|
protected boolean |
PrefixedStringDecoder.doDecode(IoSession session,
IoBuffer in,
ProtocolDecoderOutput out) |
Modifier and Type | Method and Description |
---|---|
protected boolean |
ObjectSerializationDecoder.doDecode(IoSession session,
IoBuffer in,
ProtocolDecoderOutput out) |
Modifier and Type | Method and Description |
---|---|
DecodingState |
CrLfDecodingState.decode(IoBuffer in,
ProtocolDecoderOutput out)
Invoked when data is available for this state.
|
DecodingState |
ShortIntegerDecodingState.decode(IoBuffer in,
ProtocolDecoderOutput out)
Invoked when data is available for this state.
|
DecodingState |
SkippingState.decode(IoBuffer in,
ProtocolDecoderOutput out)
Invoked when data is available for this state.
|
DecodingState |
DecodingState.decode(IoBuffer in,
ProtocolDecoderOutput out)
Invoked when data is available for this state.
|
DecodingState |
ConsumeToCrLfDecodingState.decode(IoBuffer in,
ProtocolDecoderOutput out) |
DecodingState |
SingleByteDecodingState.decode(IoBuffer in,
ProtocolDecoderOutput out) |
DecodingState |
FixedLengthDecodingState.decode(IoBuffer in,
ProtocolDecoderOutput out)
Invoked when data is available for this state.
|
DecodingState |
ConsumeToEndOfSessionDecodingState.decode(IoBuffer in,
ProtocolDecoderOutput out)
Invoked when data is available for this state.
|
DecodingState |
IntegerDecodingState.decode(IoBuffer in,
ProtocolDecoderOutput out)
Invoked when data is available for this state.
|
DecodingState |
ConsumeToDynamicTerminatorDecodingState.decode(IoBuffer in,
ProtocolDecoderOutput out)
Invoked when data is available for this state.
|
DecodingState |
ConsumeToTerminatorDecodingState.decode(IoBuffer in,
ProtocolDecoderOutput out)
Invoked when data is available for this state.
|
DecodingState |
DecodingStateMachine.decode(IoBuffer in,
ProtocolDecoderOutput out)
Invoked when data is available for this state.
|
void |
DecodingStateProtocolDecoder.decode(IoSession session,
IoBuffer in,
ProtocolDecoderOutput out)
Decodes binary or protocol-specific content into higher-level message objects.
|
protected abstract DecodingState |
ConsumeToCrLfDecodingState.finishDecode(IoBuffer product,
ProtocolDecoderOutput out)
Invoked when this state has reached a
CRLF . |
protected abstract DecodingState |
FixedLengthDecodingState.finishDecode(IoBuffer product,
ProtocolDecoderOutput out)
Invoked when this state has consumed the configured number of bytes.
|
protected abstract DecodingState |
ConsumeToEndOfSessionDecodingState.finishDecode(IoBuffer product,
ProtocolDecoderOutput out)
Invoked when this state has consumed all bytes until the session is
closed.
|
protected abstract DecodingState |
ConsumeToDynamicTerminatorDecodingState.finishDecode(IoBuffer product,
ProtocolDecoderOutput out)
Invoked when this state has reached the terminator byte.
|
protected abstract DecodingState |
ConsumeToTerminatorDecodingState.finishDecode(IoBuffer product,
ProtocolDecoderOutput out)
Invoked when this state has reached the terminator byte.
|
Modifier and Type | Method and Description |
---|---|
void |
TextLineDecoder.decode(IoSession session,
IoBuffer in,
ProtocolDecoderOutput out)
Decodes binary or protocol-specific content into higher-level message objects.
|
Modifier and Type | Method and Description |
---|---|
protected IoBuffer |
FileRegionWriteFilter.getNextBuffer(FileRegion fileRegion) |
protected IoBuffer |
StreamWriteFilter.getNextBuffer(java.io.InputStream is) |
protected abstract IoBuffer |
AbstractStreamWriteFilter.getNextBuffer(T message) |
Modifier and Type | Method and Description |
---|---|
void |
ProxyLogicHandler.messageReceived(IoFilter.NextFilter nextFilter,
IoBuffer buf)
Handle incoming data during the handshake process.
|
protected WriteFuture |
AbstractProxyLogicHandler.writeData(IoFilter.NextFilter nextFilter,
IoBuffer data)
Writes data to the proxy server.
|
Modifier and Type | Class and Description |
---|---|
class |
ProxyHandshakeIoBuffer
ProxyHandshakeIoBuffer.java -
IoBuffer wrapper to indicate handshake
related messages which should not be passed upstream of the ProxyFilter . |
Constructor and Description |
---|
ProxyHandshakeIoBuffer(IoBuffer buf) |
Modifier and Type | Method and Description |
---|---|
void |
AbstractHttpLogicHandler.messageReceived(IoFilter.NextFilter nextFilter,
IoBuffer buf)
Handles incoming data during the handshake process.
|
Modifier and Type | Method and Description |
---|---|
protected void |
Socks4LogicHandler.handleResponse(IoBuffer buf)
Handle a SOCKS4/SOCKS4a response from the proxy server.
|
protected void |
Socks5LogicHandler.handleResponse(IoFilter.NextFilter nextFilter,
IoBuffer buf,
int step)
Handle a SOCKS v5 response from the proxy server.
|
void |
Socks5LogicHandler.messageReceived(IoFilter.NextFilter nextFilter,
IoBuffer buf)
Handles incoming data during the handshake process.
|
void |
Socks4LogicHandler.messageReceived(IoFilter.NextFilter nextFilter,
IoBuffer buf)
Handle incoming data during the handshake process.
|
Modifier and Type | Method and Description |
---|---|
IoBuffer |
IoBufferDecoder.decodeFully(IoBuffer in)
Will return null unless it has enough data to decode.
|
IoBuffer |
IoBufferDecoder.DecodingContext.getDecodedBuffer() |
IoBuffer |
IoBufferDecoder.DecodingContext.getDelimiter() |
Modifier and Type | Method and Description |
---|---|
IoBuffer |
IoBufferDecoder.decodeFully(IoBuffer in)
Will return null unless it has enough data to decode.
|
void |
IoBufferDecoder.DecodingContext.setDecodedBuffer(IoBuffer decodedBuffer) |
void |
IoBufferDecoder.DecodingContext.setDelimiter(IoBuffer delimiter) |
Modifier and Type | Method and Description |
---|---|
protected int |
AprIoProcessor.read(AprSession session,
IoBuffer buffer)
|
protected int |
AprIoProcessor.write(AprSession session,
IoBuffer buf,
int length)
Write a sequence of bytes to a
IoSession , means to be called when
a session was found ready for writing. |
Modifier and Type | Method and Description |
---|---|
protected int |
NioProcessor.read(NioSession session,
IoBuffer buf) |
protected java.net.SocketAddress |
NioDatagramAcceptor.receive(java.nio.channels.DatagramChannel handle,
IoBuffer buffer) |
protected int |
NioDatagramAcceptor.send(NioSession session,
IoBuffer buffer,
java.net.SocketAddress remoteAddress) |
protected int |
NioProcessor.write(NioSession session,
IoBuffer buf,
int length) |
Modifier and Type | Field and Description |
---|---|
protected IoBuffer |
BufferByteArray.bb
The backing
IoBuffer . |
Modifier and Type | Method and Description |
---|---|
IoBuffer |
CompositeByteArray.getSingleIoBuffer() |
IoBuffer |
ByteArray.getSingleIoBuffer()
Gets a single
IoBuffer that backs this array. |
IoBuffer |
BufferByteArray.getSingleIoBuffer() |
Modifier and Type | Method and Description |
---|---|
java.lang.Iterable<IoBuffer> |
CompositeByteArray.getIoBuffers() |
java.lang.Iterable<IoBuffer> |
ByteArray.getIoBuffers()
Get the sequence of
IoBuffer s that back this array. |
java.lang.Iterable<IoBuffer> |
BufferByteArray.getIoBuffers() |
Modifier and Type | Method and Description |
---|---|
void |
CompositeByteArray.get(int index,
IoBuffer bb) |
void |
IoAbsoluteReader.get(int index,
IoBuffer bb)
Gets enough bytes to fill the
IoBuffer from the given index. |
void |
ByteArray.get(int index,
IoBuffer bb) |
void |
BufferByteArray.get(int index,
IoBuffer other) |
void |
IoRelativeReader.get(IoBuffer bb)
Gets enough bytes to fill the
IoBuffer and advances the reader. |
void |
ByteArray.Cursor.get(IoBuffer bb) |
void |
CompositeByteArrayRelativeReader.get(IoBuffer bb)
places the data starting at current position into the
supplied
IoBuffer |
void |
IoAbsoluteWriter.put(int index,
IoBuffer bb)
Puts bytes from the
IoBuffer at the given index. |
void |
CompositeByteArray.put(int index,
IoBuffer bb) |
void |
BufferByteArray.put(int index,
IoBuffer other) |
void |
CompositeByteArrayRelativeWriter.put(IoBuffer bb) |
void |
IoRelativeWriter.put(IoBuffer bb)
Puts enough bytes to fill the
IoBuffer and advances the reader. |
Constructor and Description |
---|
BufferByteArray(IoBuffer bb)
Creates a new instance of BufferByteArray and uses the supplied
IoBuffer to back this class |
Copyright © 2004-2019 Apache MINA Project. All Rights Reserved.