程序包 | 说明 |
---|---|
org.apache.mina.common |
Common types required for users to use MINA.
|
org.apache.mina.common.support |
Internal classes used by org.apache.mina.common package.
|
org.apache.mina.example.httpserver.codec |
A HTTP server implemented with protocol codec (needs more work).
|
org.apache.mina.example.sumup.codec |
Protocol codec implementation for SumUp protocol.
|
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.netty |
Protocol codec which provides the integration with Netty2 messages.
|
org.apache.mina.filter.codec.serialization |
Protocol codecs which uses Java object serilization and leads to rapid protocol
implementation.
|
org.apache.mina.filter.codec.support |
Internal classes used by org.apache.mina.filter.codec package.
|
org.apache.mina.filter.codec.textline |
A protocol codec for text-based protocols.
|
org.apache.mina.filter.support |
Internal classes used by org.apache.mina.filter package.
|
org.apache.mina.handler.support |
Internal classes used by org.apache.mina.handler package.
|
限定符和类型 | 类和说明 |
---|---|
class |
ByteBufferProxy
A
ByteBuffer that wraps a buffer and proxies any operations to it. |
限定符和类型 | 字段和说明 |
---|---|
protected ByteBuffer |
ByteBufferProxy.buf
The buffer proxied by this proxy.
|
限定符和类型 | 方法和说明 |
---|---|
static ByteBuffer |
ByteBuffer.allocate(int capacity)
Returns the direct or heap buffer which is capable of the specified
size.
|
ByteBuffer |
SimpleByteBufferAllocator.allocate(int capacity,
boolean direct) |
ByteBuffer |
PooledByteBufferAllocator.allocate(int capacity,
boolean direct) |
ByteBuffer |
ByteBufferAllocator.allocate(int capacity,
boolean direct)
Returns the buffer which is capable of the specified size.
|
static ByteBuffer |
ByteBuffer.allocate(int capacity,
boolean direct)
Returns the buffer which is capable of the specified size.
|
ByteBuffer |
ByteBufferProxy.asReadOnlyBuffer() |
abstract ByteBuffer |
ByteBuffer.asReadOnlyBuffer() |
protected ByteBuffer |
ByteBuffer.autoExpand(int expectedRemaining)
This method forwards the call to
expand(int) only when
autoExpand property is true. |
protected ByteBuffer |
ByteBuffer.autoExpand(int pos,
int expectedRemaining)
This method forwards the call to
expand(int) only when
autoExpand property is true. |
ByteBuffer |
ByteBufferProxy.capacity(int newCapacity) |
abstract ByteBuffer |
ByteBuffer.capacity(int newCapacity)
Changes the capacity of this buffer.
|
ByteBuffer |
ByteBufferProxy.clear() |
abstract ByteBuffer |
ByteBuffer.clear() |
ByteBuffer |
ByteBufferProxy.compact() |
abstract ByteBuffer |
ByteBuffer.compact() |
ByteBuffer |
ByteBufferProxy.duplicate() |
abstract ByteBuffer |
ByteBuffer.duplicate() |
ByteBuffer |
ByteBufferProxy.expand(int expectedRemaining) |
ByteBuffer |
ByteBuffer.expand(int expectedRemaining)
Changes the capacity and limit of this buffer so this buffer get
the specified expectedRemaining room from the current position.
|
ByteBuffer |
ByteBufferProxy.expand(int pos,
int expectedRemaining) |
abstract ByteBuffer |
ByteBuffer.expand(int pos,
int expectedRemaining)
Changes the capacity and limit of this buffer so this buffer get
the specified expectedRemaining room from the specified
pos.
|
ByteBuffer |
ByteBufferProxy.fill(byte value,
int size) |
ByteBuffer |
ByteBuffer.fill(byte value,
int size)
Fills this buffer with the specified value.
|
ByteBuffer |
ByteBufferProxy.fill(int size) |
ByteBuffer |
ByteBuffer.fill(int size)
Fills this buffer with
NUL (0x00) . |
ByteBuffer |
ByteBufferProxy.fillAndReset(byte value,
int size) |
ByteBuffer |
ByteBuffer.fillAndReset(byte value,
int size)
Fills this buffer with the specified value.
|
ByteBuffer |
ByteBufferProxy.fillAndReset(int size) |
ByteBuffer |
ByteBuffer.fillAndReset(int size)
Fills this buffer with
NUL (0x00) . |
ByteBuffer |
ByteBufferProxy.flip() |
abstract ByteBuffer |
ByteBuffer.flip() |
ByteBuffer |
ByteBufferProxy.get(byte[] dst) |
ByteBuffer |
ByteBuffer.get(byte[] dst) |
ByteBuffer |
ByteBufferProxy.get(byte[] dst,
int offset,
int length) |
abstract ByteBuffer |
ByteBuffer.get(byte[] dst,
int offset,
int length) |
ByteBuffer |
ByteBufferProxy.limit(int newLimit) |
abstract ByteBuffer |
ByteBuffer.limit(int newLimit) |
ByteBuffer |
ByteBufferProxy.mark() |
abstract ByteBuffer |
ByteBuffer.mark() |
ByteBuffer |
ByteBufferProxy.order(java.nio.ByteOrder bo) |
abstract ByteBuffer |
ByteBuffer.order(java.nio.ByteOrder bo) |
ByteBuffer |
ByteBufferProxy.position(int newPosition) |
abstract ByteBuffer |
ByteBuffer.position(int newPosition) |
ByteBuffer |
ByteBufferProxy.put(byte b) |
abstract ByteBuffer |
ByteBuffer.put(byte b) |
ByteBuffer |
ByteBufferProxy.put(byte[] src) |
ByteBuffer |
ByteBuffer.put(byte[] src) |
ByteBuffer |
ByteBufferProxy.put(byte[] src,
int offset,
int length) |
abstract ByteBuffer |
ByteBuffer.put(byte[] src,
int offset,
int length) |
ByteBuffer |
ByteBufferProxy.put(ByteBuffer src) |
ByteBuffer |
ByteBufferProxy.put(java.nio.ByteBuffer src) |
abstract ByteBuffer |
ByteBuffer.put(java.nio.ByteBuffer src)
Writes the content of the specified src into this buffer.
|
ByteBuffer |
ByteBuffer.put(ByteBuffer src)
Writes the content of the specified src into this buffer.
|
ByteBuffer |
ByteBufferProxy.put(int index,
byte b) |
abstract ByteBuffer |
ByteBuffer.put(int index,
byte b) |
ByteBuffer |
ByteBufferProxy.putChar(char value) |
abstract ByteBuffer |
ByteBuffer.putChar(char value) |
ByteBuffer |
ByteBufferProxy.putChar(int index,
char value) |
abstract ByteBuffer |
ByteBuffer.putChar(int index,
char value) |
ByteBuffer |
ByteBufferProxy.putDouble(double value) |
abstract ByteBuffer |
ByteBuffer.putDouble(double value) |
ByteBuffer |
ByteBufferProxy.putDouble(int index,
double value) |
abstract ByteBuffer |
ByteBuffer.putDouble(int index,
double value) |
ByteBuffer |
ByteBufferProxy.putFloat(float value) |
abstract ByteBuffer |
ByteBuffer.putFloat(float value) |
ByteBuffer |
ByteBufferProxy.putFloat(int index,
float value) |
abstract ByteBuffer |
ByteBuffer.putFloat(int index,
float value) |
ByteBuffer |
ByteBufferProxy.putInt(int value) |
abstract ByteBuffer |
ByteBuffer.putInt(int value) |
ByteBuffer |
ByteBufferProxy.putInt(int index,
int value) |
abstract ByteBuffer |
ByteBuffer.putInt(int index,
int value) |
ByteBuffer |
ByteBufferProxy.putLong(int index,
long value) |
abstract ByteBuffer |
ByteBuffer.putLong(int index,
long value) |
ByteBuffer |
ByteBufferProxy.putLong(long value) |
abstract ByteBuffer |
ByteBuffer.putLong(long value) |
ByteBuffer |
ByteBufferProxy.putObject(java.lang.Object o) |
ByteBuffer |
ByteBuffer.putObject(java.lang.Object o)
Writes the specified Java object to the buffer.
|
ByteBuffer |
ByteBufferProxy.putPrefixedString(java.lang.CharSequence in,
java.nio.charset.CharsetEncoder encoder) |
ByteBuffer |
ByteBuffer.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 . |
ByteBuffer |
ByteBufferProxy.putPrefixedString(java.lang.CharSequence in,
int prefixLength,
java.nio.charset.CharsetEncoder encoder) |
ByteBuffer |
ByteBuffer.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 . |
ByteBuffer |
ByteBufferProxy.putPrefixedString(java.lang.CharSequence in,
int prefixLength,
int padding,
byte padValue,
java.nio.charset.CharsetEncoder encoder) |
ByteBuffer |
ByteBuffer.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 . |
ByteBuffer |
ByteBufferProxy.putPrefixedString(java.lang.CharSequence in,
int prefixLength,
int padding,
java.nio.charset.CharsetEncoder encoder) |
ByteBuffer |
ByteBuffer.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 . |
ByteBuffer |
ByteBufferProxy.putShort(int index,
short value) |
abstract ByteBuffer |
ByteBuffer.putShort(int index,
short value) |
ByteBuffer |
ByteBufferProxy.putShort(short value) |
abstract ByteBuffer |
ByteBuffer.putShort(short value) |
ByteBuffer |
ByteBufferProxy.putString(java.lang.CharSequence in,
java.nio.charset.CharsetEncoder encoder) |
ByteBuffer |
ByteBuffer.putString(java.lang.CharSequence val,
java.nio.charset.CharsetEncoder encoder)
Writes the content of
in into this buffer using the
specified encoder . |
ByteBuffer |
ByteBufferProxy.putString(java.lang.CharSequence in,
int fieldSize,
java.nio.charset.CharsetEncoder encoder) |
ByteBuffer |
ByteBuffer.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 . |
ByteBuffer |
ByteBufferProxy.reset() |
abstract ByteBuffer |
ByteBuffer.reset() |
ByteBuffer |
ByteBufferProxy.rewind() |
abstract ByteBuffer |
ByteBuffer.rewind() |
ByteBuffer |
ByteBufferProxy.setAutoExpand(boolean autoExpand) |
abstract ByteBuffer |
ByteBuffer.setAutoExpand(boolean autoExpand)
Turns on or off autoExpand.
|
ByteBuffer |
ByteBufferProxy.skip(int size) |
ByteBuffer |
ByteBuffer.skip(int size)
Forwards the position of this buffer as the specified
size
bytes. |
ByteBuffer |
ByteBufferProxy.slice() |
abstract ByteBuffer |
ByteBuffer.slice() |
ByteBuffer |
ByteBufferProxy.sweep() |
ByteBuffer |
ByteBuffer.sweep()
Clears this buffer and fills its content with NUL.
|
ByteBuffer |
ByteBufferProxy.sweep(byte value) |
ByteBuffer |
ByteBuffer.sweep(byte value)
Clears this buffer and fills its content with value.
|
static ByteBuffer |
ByteBuffer.wrap(byte[] byteArray)
Wraps the specified byte array into MINA heap buffer.
|
static ByteBuffer |
ByteBuffer.wrap(byte[] byteArray,
int offset,
int length)
Wraps the specified byte array into MINA heap buffer.
|
ByteBuffer |
SimpleByteBufferAllocator.wrap(java.nio.ByteBuffer nioBuffer) |
ByteBuffer |
PooledByteBufferAllocator.wrap(java.nio.ByteBuffer nioBuffer) |
ByteBuffer |
ByteBufferAllocator.wrap(java.nio.ByteBuffer nioBuffer)
Wraps the specified NIO
ByteBuffer into MINA buffer. |
static ByteBuffer |
ByteBuffer.wrap(java.nio.ByteBuffer nioBuffer)
Wraps the specified NIO
ByteBuffer into MINA buffer. |
限定符和类型 | 方法和说明 |
---|---|
int |
ByteBufferProxy.compareTo(ByteBuffer that) |
int |
ByteBuffer.compareTo(ByteBuffer that) |
ByteBuffer |
ByteBufferProxy.put(ByteBuffer src) |
ByteBuffer |
ByteBuffer.put(ByteBuffer src)
Writes the content of the specified src into this buffer.
|
构造器和说明 |
---|
ByteBufferProxy(ByteBuffer buf)
Create a new instance.
|
限定符和类型 | 类和说明 |
---|---|
class |
BaseByteBuffer
A base implementation of
ByteBuffer . |
限定符和类型 | 方法和说明 |
---|---|
ByteBuffer |
BaseByteBuffer.capacity(int newCapacity) |
ByteBuffer |
BaseByteBuffer.clear() |
ByteBuffer |
BaseByteBuffer.compact() |
ByteBuffer |
BaseByteBuffer.expand(int pos,
int expectedRemaining) |
ByteBuffer |
BaseByteBuffer.flip() |
ByteBuffer |
BaseByteBuffer.get(byte[] dst,
int offset,
int length) |
ByteBuffer |
BaseByteBuffer.limit(int newLimit) |
ByteBuffer |
BaseByteBuffer.mark() |
ByteBuffer |
BaseByteBuffer.order(java.nio.ByteOrder bo) |
ByteBuffer |
BaseByteBuffer.position(int newPosition) |
ByteBuffer |
BaseByteBuffer.put(byte b) |
ByteBuffer |
BaseByteBuffer.put(byte[] src,
int offset,
int length) |
ByteBuffer |
BaseByteBuffer.put(java.nio.ByteBuffer src) |
ByteBuffer |
BaseByteBuffer.put(int index,
byte b) |
ByteBuffer |
BaseByteBuffer.putChar(char value) |
ByteBuffer |
BaseByteBuffer.putChar(int index,
char value) |
ByteBuffer |
BaseByteBuffer.putDouble(double value) |
ByteBuffer |
BaseByteBuffer.putDouble(int index,
double value) |
ByteBuffer |
BaseByteBuffer.putFloat(float value) |
ByteBuffer |
BaseByteBuffer.putFloat(int index,
float value) |
ByteBuffer |
BaseByteBuffer.putInt(int value) |
ByteBuffer |
BaseByteBuffer.putInt(int index,
int value) |
ByteBuffer |
BaseByteBuffer.putLong(int index,
long value) |
ByteBuffer |
BaseByteBuffer.putLong(long value) |
ByteBuffer |
BaseByteBuffer.putShort(int index,
short value) |
ByteBuffer |
BaseByteBuffer.putShort(short value) |
ByteBuffer |
BaseByteBuffer.reset() |
ByteBuffer |
BaseByteBuffer.rewind() |
ByteBuffer |
BaseByteBuffer.setAutoExpand(boolean autoExpand) |
限定符和类型 | 方法和说明 |
---|---|
static java.lang.String |
ByteBufferHexDumper.getHexdump(ByteBuffer in) |
限定符和类型 | 方法和说明 |
---|---|
ByteBuffer |
HttpResponseMessage.getBody() |
限定符和类型 | 方法和说明 |
---|---|
MessageDecoderResult |
HttpRequestDecoder.decodable(IoSession session,
ByteBuffer in) |
MessageDecoderResult |
HttpRequestDecoder.decode(IoSession session,
ByteBuffer in,
ProtocolDecoderOutput out) |
限定符和类型 | 方法和说明 |
---|---|
MessageDecoderResult |
AbstractMessageDecoder.decodable(IoSession session,
ByteBuffer in) |
MessageDecoderResult |
AbstractMessageDecoder.decode(IoSession session,
ByteBuffer in,
ProtocolDecoderOutput out) |
protected AbstractMessage |
ResultMessageDecoder.decodeBody(IoSession session,
ByteBuffer in) |
protected AbstractMessage |
AddMessageDecoder.decodeBody(IoSession session,
ByteBuffer in) |
protected abstract AbstractMessage |
AbstractMessageDecoder.decodeBody(IoSession session,
ByteBuffer in) |
protected void |
ResultMessageEncoder.encodeBody(IoSession session,
AbstractMessage message,
ByteBuffer out) |
protected void |
AddMessageEncoder.encodeBody(IoSession session,
AbstractMessage message,
ByteBuffer out) |
protected abstract void |
AbstractMessageEncoder.encodeBody(IoSession session,
AbstractMessage message,
ByteBuffer out) |
限定符和类型 | 方法和说明 |
---|---|
void |
SynchronizedProtocolDecoder.decode(IoSession session,
ByteBuffer in,
ProtocolDecoderOutput out) |
void |
ProtocolDecoder.decode(IoSession session,
ByteBuffer in,
ProtocolDecoderOutput out)
Decodes binary or protocol-specific content into higher-level message objects.
|
void |
CumulativeProtocolDecoder.decode(IoSession session,
ByteBuffer in,
ProtocolDecoderOutput out)
Cumulates content of in into internal buffer and forwards
decoding request to
CumulativeProtocolDecoder.doDecode(IoSession, ByteBuffer, ProtocolDecoderOutput) . |
protected abstract boolean |
CumulativeProtocolDecoder.doDecode(IoSession session,
ByteBuffer in,
ProtocolDecoderOutput out)
Implement this method to consume the specified cumulative buffer and
decode its content into message(s).
|
void |
ProtocolEncoderOutput.write(ByteBuffer buf)
Callback for
ProtocolEncoder to generate encoded
ByteBuffer s. |
限定符和类型 | 方法和说明 |
---|---|
MessageDecoderResult |
MessageDecoder.decodable(IoSession session,
ByteBuffer in)
Checks the specified buffer is decodable by this decoder.
|
MessageDecoderResult |
MessageDecoder.decode(IoSession session,
ByteBuffer in,
ProtocolDecoderOutput out)
Decodes binary or protocol-specific content into higher-level message objects.
|
限定符和类型 | 方法和说明 |
---|---|
void |
NettyDecoder.decode(IoSession session,
ByteBuffer in,
ProtocolDecoderOutput out) |
限定符和类型 | 方法和说明 |
---|---|
protected boolean |
ObjectSerializationDecoder.doDecode(IoSession session,
ByteBuffer in,
ProtocolDecoderOutput out) |
限定符和类型 | 方法和说明 |
---|---|
java.util.Queue<ByteBuffer> |
SimpleProtocolEncoderOutput.getBufferQueue() |
限定符和类型 | 方法和说明 |
---|---|
protected abstract WriteFuture |
SimpleProtocolEncoderOutput.doFlush(ByteBuffer buf) |
void |
SimpleProtocolEncoderOutput.write(ByteBuffer buf) |
限定符和类型 | 方法和说明 |
---|---|
void |
TextLineDecoder.decode(IoSession session,
ByteBuffer in,
ProtocolDecoderOutput out) |
限定符和类型 | 方法和说明 |
---|---|
static ByteBuffer |
SSLHandler.copy(java.nio.ByteBuffer src)
Creates a new Mina byte buffer that is a deep copy of the remaining bytes
in the given buffer (between index buf.position() and buf.limit())
|
ByteBuffer |
Zlib.deflate(ByteBuffer inBuffer) |
ByteBuffer |
Zlib.inflate(ByteBuffer inBuffer) |
限定符和类型 | 方法和说明 |
---|---|
ByteBuffer |
Zlib.deflate(ByteBuffer inBuffer) |
ByteBuffer |
Zlib.inflate(ByteBuffer inBuffer) |
限定符和类型 | 方法和说明 |
---|---|
void |
IoSessionInputStream.write(ByteBuffer src) |