程序包 | 说明 |
---|---|
org.jboss.netty.buffer |
Abstraction of a byte buffer - the fundamental data structure
to represent a low-level binary and text message.
|
org.jboss.netty.channel |
The core channel API which is asynchronous and event-driven abstraction of
various transports such as a
NIO Channel.
|
org.jboss.netty.channel.socket.http |
An HTTP-based client-side
SocketChannel
and its corresponding server-side Servlet implementation that make your
existing server application work in a firewalled network. |
org.jboss.netty.handler.codec.base64 |
Encoder and decoder which transform a
Base64-encoded
String or ChannelBuffer
into a decoded ChannelBuffer and vice versa. |
org.jboss.netty.handler.codec.embedder |
A helper that wraps an encoder or a decoder so that they can be used without
doing actual I/O in unit tests or higher level codecs.
|
限定符和类型 | 类和说明 |
---|---|
class |
AbstractChannelBufferFactory
A skeletal implementation of
ChannelBufferFactory . |
class |
DirectChannelBufferFactory
A
ChannelBufferFactory which pre-allocates a large chunk of direct
buffer and returns its slice on demand. |
class |
HeapChannelBufferFactory
A
ChannelBufferFactory which merely allocates a heap buffer with
the specified capacity. |
限定符和类型 | 方法和说明 |
---|---|
ChannelBufferFactory |
TruncatedChannelBuffer.factory() |
ChannelBufferFactory |
SlicedChannelBuffer.factory() |
ChannelBufferFactory |
ReadOnlyChannelBuffer.factory() |
ChannelBufferFactory |
LittleEndianHeapChannelBuffer.factory() |
ChannelBufferFactory |
DynamicChannelBuffer.factory() |
ChannelBufferFactory |
DuplicatedChannelBuffer.factory() |
ChannelBufferFactory |
CompositeChannelBuffer.factory() |
ChannelBufferFactory |
ChannelBuffer.factory()
Returns the factory which creates a
ChannelBuffer whose
type and default ByteOrder are same with this buffer. |
ChannelBufferFactory |
ByteBufferBackedChannelBuffer.factory() |
ChannelBufferFactory |
BigEndianHeapChannelBuffer.factory() |
static ChannelBufferFactory |
HeapChannelBufferFactory.getInstance() |
static ChannelBufferFactory |
DirectChannelBufferFactory.getInstance() |
static ChannelBufferFactory |
HeapChannelBufferFactory.getInstance(java.nio.ByteOrder endianness) |
static ChannelBufferFactory |
DirectChannelBufferFactory.getInstance(java.nio.ByteOrder defaultEndianness) |
限定符和类型 | 方法和说明 |
---|---|
static ChannelBuffer |
ChannelBuffers.dynamicBuffer(java.nio.ByteOrder endianness,
int estimatedLength,
ChannelBufferFactory factory)
Creates a new dynamic buffer with the specified endianness and
the specified estimated data length using the specified factory.
|
static ChannelBuffer |
ChannelBuffers.dynamicBuffer(ChannelBufferFactory factory) |
static ChannelBuffer |
ChannelBuffers.dynamicBuffer(int estimatedLength,
ChannelBufferFactory factory)
Creates a new big-endian dynamic buffer with the specified estimated
data length using the specified factory.
|
构造器和说明 |
---|
DynamicChannelBuffer(java.nio.ByteOrder endianness,
int estimatedLength,
ChannelBufferFactory factory) |
限定符和类型 | 方法和说明 |
---|---|
ChannelBufferFactory |
DefaultServerChannelConfig.getBufferFactory() |
ChannelBufferFactory |
DefaultChannelConfig.getBufferFactory() |
ChannelBufferFactory |
ChannelConfig.getBufferFactory()
Returns the default
ChannelBufferFactory used to create a new
ChannelBuffer . |
限定符和类型 | 方法和说明 |
---|---|
void |
DefaultServerChannelConfig.setBufferFactory(ChannelBufferFactory bufferFactory) |
void |
DefaultChannelConfig.setBufferFactory(ChannelBufferFactory bufferFactory) |
void |
ChannelConfig.setBufferFactory(ChannelBufferFactory bufferFactory)
Sets the default
ChannelBufferFactory used to create a new
ChannelBuffer . |
限定符和类型 | 方法和说明 |
---|---|
ChannelBufferFactory |
HttpTunnelingSocketChannelConfig.getBufferFactory() |
限定符和类型 | 方法和说明 |
---|---|
void |
HttpTunnelingSocketChannelConfig.setBufferFactory(ChannelBufferFactory bufferFactory) |
构造器和说明 |
---|
DecoderEmbedder(ChannelBufferFactory bufferFactory,
ChannelUpstreamHandler... handlers)
Creates a new embedder whose pipeline is composed of the specified
handlers.
|
EncoderEmbedder(ChannelBufferFactory bufferFactory,
ChannelDownstreamHandler... handlers)
Creates a new embedder whose pipeline is composed of the specified
handlers.
|