Package | Description |
---|---|
io.netty.buffer |
Abstraction of a byte buffer - the fundamental data structure
to represent a low-level binary and text message.
|
io.netty.channel |
The core channel API which is asynchronous and event-driven abstraction of
various transports such as a
NIO Channel.
|
io.netty.channel.nio |
NIO-based channel
API implementation - recommended for a large number of connections (>= 1000).
|
io.netty.channel.oio |
Old blocking I/O based channel API implementation - recommended for
a small number of connections (< 1000).
|
io.netty.channel.sctp |
Abstract SCTP socket interfaces which extend the core channel API.
|
io.netty.channel.socket |
Abstract TCP and UDP socket interfaces which extend the core channel API.
|
io.netty.channel.socket.nio |
NIO-based socket channel
API implementation - recommended for a large number of connections (>= 1000).
|
io.netty.channel.socket.oio |
Old blocking I/O based socket channel API implementation - recommended for
a small number of connections (< 1000).
|
io.netty.channel.udt |
UDT Transport.
|
io.netty.channel.udt.nio |
UDT Transport for NIO Channels.
|
io.netty.handler.codec |
Extensible decoder and its common implementations which deal with the
packet fragmentation and reassembly issue found in a stream-based transport
such as TCP/IP.
|
io.netty.handler.codec.base64 | |
io.netty.handler.codec.bytes |
Encoder and decoder which transform an array of bytes into a
ByteBuf and vice versa. |
io.netty.handler.codec.compression | |
io.netty.handler.codec.dns |
DNS codec information for writing to and reading from a DNS server.
|
io.netty.handler.codec.haproxy |
Decodes an HAProxy proxy protocol header
|
io.netty.handler.codec.http |
Encoder, decoder and their related message types for HTTP.
|
io.netty.handler.codec.http.multipart |
HTTP multipart support.
|
io.netty.handler.codec.http.websocketx |
Encoder, decoder, handshakers and their related message types for
Web Socket data frames.
|
io.netty.handler.codec.http2 |
Handlers for sending and receiving HTTP/2 frames.
|
io.netty.handler.codec.json |
JSON specific codecs.
|
io.netty.handler.codec.marshalling |
Decoder and Encoder which uses JBoss Marshalling.
|
io.netty.handler.codec.memcache |
Common superset of ascii and binary classes.
|
io.netty.handler.codec.memcache.binary |
Implementations and Interfaces for the Memcache Binary protocol.
|
io.netty.handler.codec.mqtt |
Encoder, decoder and different Message Types for MQTT.
|
io.netty.handler.codec.protobuf |
Encoder and decoder which transform a
Google Protocol Buffers
Message into a ByteBuf
and vice versa. |
io.netty.handler.codec.rtsp |
An RTSP
extension based on the HTTP codec.
|
io.netty.handler.codec.sctp |
Decoder and encoders to manage message completion and multi-streaming codec in SCTP/IP.
|
io.netty.handler.codec.serialization |
Encoder, decoder and their compatibility stream implementations which
transform a
Serializable object into a byte buffer and
vice versa. |
io.netty.handler.codec.socksx |
Encoder, decoder and their related message types for SOCKS protocol.
|
io.netty.handler.codec.socksx.v4 |
Encoder, decoder and their related message types for SOCKSv4 protocol.
|
io.netty.handler.codec.socksx.v5 |
Encoder, decoder and their related message types for SOCKSv5 protocol.
|
io.netty.handler.codec.spdy |
Encoder, decoder, session handler and their related message types for the SPDY protocol.
|
io.netty.handler.codec.stomp |
STOMP codec
|
io.netty.handler.codec.string | |
io.netty.handler.codec.xml |
Xml specific codecs.
|
io.netty.handler.logging |
Logs the I/O events for debugging purpose.
|
io.netty.handler.ssl | |
io.netty.handler.stream |
Writes very large data stream asynchronously neither spending a lot of
memory nor getting
OutOfMemoryError . |
Modifier and Type | Class and Description |
---|---|
class |
AbstractByteBuf
A skeletal implementation of a buffer.
|
class |
AbstractDerivedByteBuf
|
class |
AbstractReferenceCountedByteBuf
Abstract base class for
ByteBuf implementations that count references. |
class |
CompositeByteBuf
A virtual buffer which shows multiple buffers as a single merged buffer.
|
class |
DuplicatedByteBuf
A derived buffer which simply forwards all data access requests to its
parent.
|
class |
EmptyByteBuf
An empty
ByteBuf whose capacity and maximum capacity are all 0 . |
class |
ReadOnlyByteBuf
A derived buffer which forbids any write requests to its parent.
|
class |
SlicedByteBuf
A derived buffer which exposes its parent's sub-region only.
|
class |
SwappedByteBuf
|
class |
UnpooledDirectByteBuf
A NIO
ByteBuffer based buffer. |
class |
UnpooledHeapByteBuf
Big endian Java heap buffer implementation.
|
class |
UnpooledUnsafeDirectByteBuf
A NIO
ByteBuffer based buffer. |
class |
WrappedByteBuf |
Modifier and Type | Field and Description |
---|---|
protected ByteBuf |
WrappedByteBuf.buf |
static ByteBuf |
Unpooled.EMPTY_BUFFER
A buffer whose capacity is
0 . |
Modifier and Type | Method and Description |
---|---|
static ByteBuf |
Unpooled.buffer()
Creates a new big-endian Java heap buffer with reasonably small initial capacity, which
expands its capacity boundlessly on demand.
|
ByteBuf |
ByteBufOutputStream.buffer()
Returns the buffer where this stream is writing data.
|
ByteBuf |
AbstractByteBufAllocator.buffer() |
ByteBuf |
ByteBufAllocator.buffer()
Allocate a
ByteBuf . |
static ByteBuf |
Unpooled.buffer(int initialCapacity)
Creates a new big-endian Java heap buffer with the specified
capacity , which
expands its capacity boundlessly on demand. |
ByteBuf |
AbstractByteBufAllocator.buffer(int initialCapacity) |
ByteBuf |
ByteBufAllocator.buffer(int initialCapacity)
Allocate a
ByteBuf with the given initial capacity. |
static ByteBuf |
Unpooled.buffer(int initialCapacity,
int maxCapacity)
Creates a new big-endian Java heap buffer with the specified
initialCapacity , that may grow up to maxCapacity
The new buffer's readerIndex and writerIndex are
0 . |
ByteBuf |
AbstractByteBufAllocator.buffer(int initialCapacity,
int maxCapacity) |
ByteBuf |
ByteBufAllocator.buffer(int initialCapacity,
int maxCapacity)
Allocate a
ByteBuf with the given initial capacity and the given
maximal capacity. |
ByteBuf |
DuplicatedByteBuf.capacity(int newCapacity) |
ByteBuf |
ReadOnlyByteBuf.capacity(int newCapacity) |
ByteBuf |
UnpooledDirectByteBuf.capacity(int newCapacity) |
abstract ByteBuf |
ByteBuf.capacity(int newCapacity)
Adjusts the capacity of this buffer.
|
ByteBuf |
SwappedByteBuf.capacity(int newCapacity) |
ByteBuf |
EmptyByteBuf.capacity(int newCapacity) |
ByteBuf |
SlicedByteBuf.capacity(int newCapacity) |
ByteBuf |
UnpooledUnsafeDirectByteBuf.capacity(int newCapacity) |
ByteBuf |
WrappedByteBuf.capacity(int newCapacity) |
ByteBuf |
UnpooledHeapByteBuf.capacity(int newCapacity) |
abstract ByteBuf |
ByteBuf.clear()
Sets the
readerIndex and writerIndex of this buffer to
0 . |
ByteBuf |
AbstractByteBuf.clear() |
ByteBuf |
SwappedByteBuf.clear() |
ByteBuf |
EmptyByteBuf.clear() |
ByteBuf |
WrappedByteBuf.clear() |
ByteBuf |
CompositeByteBuf.component(int cIndex)
Return the
ByteBuf on the specified index |
ByteBuf |
CompositeByteBuf.componentAtOffset(int offset)
Return the
ByteBuf on the specified index |
ByteBuf |
DefaultByteBufHolder.content() |
ByteBuf |
ByteBufHolder.content()
Return the data which is held by this
ByteBufHolder . |
static ByteBuf |
Unpooled.copiedBuffer(byte[]... arrays)
Creates a new big-endian buffer whose content is a merged copy of
the specified
arrays . |
static ByteBuf |
Unpooled.copiedBuffer(byte[] array)
Creates a new big-endian buffer whose content is a copy of the
specified
array . |
static ByteBuf |
Unpooled.copiedBuffer(byte[] array,
int offset,
int length)
Creates a new big-endian buffer whose content is a copy of the
specified
array 's sub-region. |
static ByteBuf |
Unpooled.copiedBuffer(ByteBuf... buffers)
Creates a new buffer whose content is a merged copy of the specified
buffers ' readable bytes. |
static ByteBuf |
Unpooled.copiedBuffer(ByteBuf buffer)
Creates a new buffer whose content is a copy of the specified
buffer 's readable bytes. |
static ByteBuf |
Unpooled.copiedBuffer(ByteBuffer... buffers)
Creates a new buffer whose content is a merged copy of the specified
buffers ' slices. |
static ByteBuf |
Unpooled.copiedBuffer(ByteBuffer buffer)
Creates a new buffer whose content is a copy of the specified
buffer 's current slice. |
static ByteBuf |
Unpooled.copiedBuffer(char[] array,
Charset charset)
Creates a new big-endian buffer whose content is the specified
array encoded in the specified charset . |
static ByteBuf |
Unpooled.copiedBuffer(char[] array,
int offset,
int length,
Charset charset)
Creates a new big-endian buffer whose content is a subregion of
the specified
array encoded in the specified charset . |
static ByteBuf |
Unpooled.copiedBuffer(CharSequence string,
Charset charset)
Creates a new big-endian buffer whose content is the specified
string encoded in the specified charset . |
static ByteBuf |
Unpooled.copiedBuffer(CharSequence string,
int offset,
int length,
Charset charset)
Creates a new big-endian buffer whose content is a subregion of
the specified
string encoded in the specified charset . |
abstract ByteBuf |
ByteBuf.copy()
Returns a copy of this buffer's readable bytes.
|
ByteBuf |
AbstractByteBuf.copy() |
ByteBuf |
SwappedByteBuf.copy() |
ByteBuf |
EmptyByteBuf.copy() |
ByteBuf |
WrappedByteBuf.copy() |
ByteBuf |
DuplicatedByteBuf.copy(int index,
int length) |
ByteBuf |
ReadOnlyByteBuf.copy(int index,
int length) |
ByteBuf |
CompositeByteBuf.copy(int index,
int length) |
ByteBuf |
UnpooledDirectByteBuf.copy(int index,
int length) |
abstract ByteBuf |
ByteBuf.copy(int index,
int length)
Returns a copy of this buffer's sub-region.
|
ByteBuf |
SwappedByteBuf.copy(int index,
int length) |
ByteBuf |
EmptyByteBuf.copy(int index,
int length) |
ByteBuf |
SlicedByteBuf.copy(int index,
int length) |
ByteBuf |
UnpooledUnsafeDirectByteBuf.copy(int index,
int length) |
ByteBuf |
WrappedByteBuf.copy(int index,
int length) |
ByteBuf |
UnpooledHeapByteBuf.copy(int index,
int length) |
static ByteBuf |
Unpooled.copyBoolean(boolean... values)
Create a new big-endian buffer that holds a sequence of the specified boolean values.
|
static ByteBuf |
Unpooled.copyBoolean(boolean value)
Creates a new single-byte big-endian buffer that holds the specified boolean value.
|
static ByteBuf |
Unpooled.copyDouble(double... values)
Create a new big-endian buffer that holds a sequence of the specified 64-bit floating point numbers.
|
static ByteBuf |
Unpooled.copyDouble(double value)
Creates a new 8-byte big-endian buffer that holds the specified 64-bit floating point number.
|
static ByteBuf |
Unpooled.copyFloat(float... values)
Create a new big-endian buffer that holds a sequence of the specified 32-bit floating point numbers.
|
static ByteBuf |
Unpooled.copyFloat(float value)
Creates a new 4-byte big-endian buffer that holds the specified 32-bit floating point number.
|
static ByteBuf |
Unpooled.copyInt(int... values)
Create a big-endian buffer that holds a sequence of the specified 32-bit integers.
|
static ByteBuf |
Unpooled.copyInt(int value)
Creates a new 4-byte big-endian buffer that holds the specified 32-bit integer.
|
static ByteBuf |
Unpooled.copyLong(long... values)
Create a new big-endian buffer that holds a sequence of the specified 64-bit integers.
|
static ByteBuf |
Unpooled.copyLong(long value)
Creates a new 8-byte big-endian buffer that holds the specified 64-bit integer.
|
static ByteBuf |
Unpooled.copyMedium(int... values)
Create a new big-endian buffer that holds a sequence of the specified 24-bit integers.
|
static ByteBuf |
Unpooled.copyMedium(int value)
Creates a new 3-byte big-endian buffer that holds the specified 24-bit integer.
|
static ByteBuf |
Unpooled.copyShort(int... values)
Create a new big-endian buffer that holds a sequence of the specified 16-bit integers.
|
static ByteBuf |
Unpooled.copyShort(int value)
Creates a new 2-byte big-endian buffer that holds the specified 16-bit integer.
|
static ByteBuf |
Unpooled.copyShort(short... values)
Create a new big-endian buffer that holds a sequence of the specified 16-bit integers.
|
static ByteBuf |
Unpooled.directBuffer()
Creates a new big-endian direct buffer with reasonably small initial capacity, which
expands its capacity boundlessly on demand.
|
ByteBuf |
AbstractByteBufAllocator.directBuffer() |
ByteBuf |
ByteBufAllocator.directBuffer()
Allocate a direct
ByteBuf . |
static ByteBuf |
Unpooled.directBuffer(int initialCapacity)
Creates a new big-endian direct buffer with the specified
capacity , which
expands its capacity boundlessly on demand. |
ByteBuf |
AbstractByteBufAllocator.directBuffer(int initialCapacity) |
ByteBuf |
ByteBufAllocator.directBuffer(int initialCapacity)
Allocate a direct
ByteBuf with the given initial capacity. |
static ByteBuf |
Unpooled.directBuffer(int initialCapacity,
int maxCapacity)
Creates a new big-endian direct buffer with the specified
initialCapacity , that may grow up to maxCapacity . |
ByteBuf |
AbstractByteBufAllocator.directBuffer(int initialCapacity,
int maxCapacity) |
ByteBuf |
ByteBufAllocator.directBuffer(int initialCapacity,
int maxCapacity)
Allocate a direct
ByteBuf with the given initial capacity and the given
maximal capacity. |
ByteBuf |
ReadOnlyByteBuf.discardReadBytes() |
abstract ByteBuf |
ByteBuf.discardReadBytes()
Discards the bytes between the 0th index and
readerIndex . |
ByteBuf |
AbstractByteBuf.discardReadBytes() |
ByteBuf |
SwappedByteBuf.discardReadBytes() |
ByteBuf |
EmptyByteBuf.discardReadBytes() |
ByteBuf |
WrappedByteBuf.discardReadBytes() |
abstract ByteBuf |
ByteBuf.discardSomeReadBytes()
Similar to
discardReadBytes() except that this method might discard
some, all, or none of read bytes depending on its internal implementation to reduce
overall memory bandwidth consumption at the cost of potentially additional memory
consumption. |
ByteBuf |
AbstractByteBuf.discardSomeReadBytes() |
ByteBuf |
SwappedByteBuf.discardSomeReadBytes() |
ByteBuf |
EmptyByteBuf.discardSomeReadBytes() |
ByteBuf |
WrappedByteBuf.discardSomeReadBytes() |
ByteBuf |
ReadOnlyByteBuf.duplicate() |
abstract ByteBuf |
ByteBuf.duplicate()
Returns a buffer which shares the whole region of this buffer.
|
ByteBuf |
AbstractByteBuf.duplicate() |
ByteBuf |
SwappedByteBuf.duplicate() |
ByteBuf |
EmptyByteBuf.duplicate() |
ByteBuf |
SlicedByteBuf.duplicate() |
ByteBuf |
WrappedByteBuf.duplicate() |
static ByteBuf |
ByteBufUtil.encodeString(ByteBufAllocator alloc,
CharBuffer src,
Charset charset)
Encode the given
CharBuffer using the given Charset into a new ByteBuf which
is allocated via the ByteBufAllocator . |
abstract ByteBuf |
ByteBuf.ensureWritable(int minWritableBytes)
Makes sure the number of the writable bytes
is equal to or greater than the specified value.
|
ByteBuf |
AbstractByteBuf.ensureWritable(int minWritableBytes) |
ByteBuf |
SwappedByteBuf.ensureWritable(int writableBytes) |
ByteBuf |
EmptyByteBuf.ensureWritable(int minWritableBytes) |
ByteBuf |
WrappedByteBuf.ensureWritable(int minWritableBytes) |
abstract ByteBuf |
ByteBuf.getBytes(int index,
byte[] dst)
Transfers this buffer's data to the specified destination starting at
the specified absolute
index . |
ByteBuf |
AbstractByteBuf.getBytes(int index,
byte[] dst) |
ByteBuf |
SwappedByteBuf.getBytes(int index,
byte[] dst) |
ByteBuf |
EmptyByteBuf.getBytes(int index,
byte[] dst) |
ByteBuf |
WrappedByteBuf.getBytes(int index,
byte[] dst) |
ByteBuf |
DuplicatedByteBuf.getBytes(int index,
byte[] dst,
int dstIndex,
int length) |
ByteBuf |
ReadOnlyByteBuf.getBytes(int index,
byte[] dst,
int dstIndex,
int length) |
ByteBuf |
UnpooledDirectByteBuf.getBytes(int index,
byte[] dst,
int dstIndex,
int length) |
abstract ByteBuf |
ByteBuf.getBytes(int index,
byte[] dst,
int dstIndex,
int length)
Transfers this buffer's data to the specified destination starting at
the specified absolute
index . |
ByteBuf |
SwappedByteBuf.getBytes(int index,
byte[] dst,
int dstIndex,
int length) |
ByteBuf |
EmptyByteBuf.getBytes(int index,
byte[] dst,
int dstIndex,
int length) |
ByteBuf |
SlicedByteBuf.getBytes(int index,
byte[] dst,
int dstIndex,
int length) |
ByteBuf |
UnpooledUnsafeDirectByteBuf.getBytes(int index,
byte[] dst,
int dstIndex,
int length) |
ByteBuf |
WrappedByteBuf.getBytes(int index,
byte[] dst,
int dstIndex,
int length) |
ByteBuf |
UnpooledHeapByteBuf.getBytes(int index,
byte[] dst,
int dstIndex,
int length) |
abstract ByteBuf |
ByteBuf.getBytes(int index,
ByteBuf dst)
Transfers this buffer's data to the specified destination starting at
the specified absolute
index until the destination becomes
non-writable. |
ByteBuf |
AbstractByteBuf.getBytes(int index,
ByteBuf dst) |
ByteBuf |
SwappedByteBuf.getBytes(int index,
ByteBuf dst) |
ByteBuf |
EmptyByteBuf.getBytes(int index,
ByteBuf dst) |
ByteBuf |
WrappedByteBuf.getBytes(int index,
ByteBuf dst) |
ByteBuf |
DuplicatedByteBuf.getBytes(int index,
ByteBuffer dst) |
ByteBuf |
ReadOnlyByteBuf.getBytes(int index,
ByteBuffer dst) |
ByteBuf |
UnpooledDirectByteBuf.getBytes(int index,
ByteBuffer dst) |
abstract ByteBuf |
ByteBuf.getBytes(int index,
ByteBuffer dst)
Transfers this buffer's data to the specified destination starting at
the specified absolute
index until the destination's position
reaches its limit. |
ByteBuf |
SwappedByteBuf.getBytes(int index,
ByteBuffer dst) |
ByteBuf |
EmptyByteBuf.getBytes(int index,
ByteBuffer dst) |
ByteBuf |
SlicedByteBuf.getBytes(int index,
ByteBuffer dst) |
ByteBuf |
UnpooledUnsafeDirectByteBuf.getBytes(int index,
ByteBuffer dst) |
ByteBuf |
WrappedByteBuf.getBytes(int index,
ByteBuffer dst) |
ByteBuf |
UnpooledHeapByteBuf.getBytes(int index,
ByteBuffer dst) |
abstract ByteBuf |
ByteBuf.getBytes(int index,
ByteBuf dst,
int length)
Transfers this buffer's data to the specified destination starting at
the specified absolute
index . |
ByteBuf |
AbstractByteBuf.getBytes(int index,
ByteBuf dst,
int length) |
ByteBuf |
SwappedByteBuf.getBytes(int index,
ByteBuf dst,
int length) |
ByteBuf |
EmptyByteBuf.getBytes(int index,
ByteBuf dst,
int length) |
ByteBuf |
WrappedByteBuf.getBytes(int index,
ByteBuf dst,
int length) |
ByteBuf |
DuplicatedByteBuf.getBytes(int index,
ByteBuf dst,
int dstIndex,
int length) |
ByteBuf |
ReadOnlyByteBuf.getBytes(int index,
ByteBuf dst,
int dstIndex,
int length) |
ByteBuf |
UnpooledDirectByteBuf.getBytes(int index,
ByteBuf dst,
int dstIndex,
int length) |
abstract ByteBuf |
ByteBuf.getBytes(int index,
ByteBuf dst,
int dstIndex,
int length)
Transfers this buffer's data to the specified destination starting at
the specified absolute
index . |
ByteBuf |
SwappedByteBuf.getBytes(int index,
ByteBuf dst,
int dstIndex,
int length) |
ByteBuf |
EmptyByteBuf.getBytes(int index,
ByteBuf dst,
int dstIndex,
int length) |
ByteBuf |
SlicedByteBuf.getBytes(int index,
ByteBuf dst,
int dstIndex,
int length) |
ByteBuf |
UnpooledUnsafeDirectByteBuf.getBytes(int index,
ByteBuf dst,
int dstIndex,
int length) |
ByteBuf |
WrappedByteBuf.getBytes(int index,
ByteBuf dst,
int dstIndex,
int length) |
ByteBuf |
UnpooledHeapByteBuf.getBytes(int index,
ByteBuf dst,
int dstIndex,
int length) |
ByteBuf |
DuplicatedByteBuf.getBytes(int index,
OutputStream out,
int length) |
ByteBuf |
ReadOnlyByteBuf.getBytes(int index,
OutputStream out,
int length) |
ByteBuf |
UnpooledDirectByteBuf.getBytes(int index,
OutputStream out,
int length) |
abstract ByteBuf |
ByteBuf.getBytes(int index,
OutputStream out,
int length)
Transfers this buffer's data to the specified stream starting at the
specified absolute
index . |
ByteBuf |
SwappedByteBuf.getBytes(int index,
OutputStream out,
int length) |
ByteBuf |
EmptyByteBuf.getBytes(int index,
OutputStream out,
int length) |
ByteBuf |
SlicedByteBuf.getBytes(int index,
OutputStream out,
int length) |
ByteBuf |
UnpooledUnsafeDirectByteBuf.getBytes(int index,
OutputStream out,
int length) |
ByteBuf |
WrappedByteBuf.getBytes(int index,
OutputStream out,
int length) |
ByteBuf |
UnpooledHeapByteBuf.getBytes(int index,
OutputStream out,
int length) |
ByteBuf |
AbstractByteBufAllocator.heapBuffer() |
ByteBuf |
ByteBufAllocator.heapBuffer()
Allocate a heap
ByteBuf . |
ByteBuf |
AbstractByteBufAllocator.heapBuffer(int initialCapacity) |
ByteBuf |
ByteBufAllocator.heapBuffer(int initialCapacity)
Allocate a heap
ByteBuf with the given initial capacity. |
ByteBuf |
AbstractByteBufAllocator.heapBuffer(int initialCapacity,
int maxCapacity) |
ByteBuf |
ByteBufAllocator.heapBuffer(int initialCapacity,
int maxCapacity)
Allocate a heap
ByteBuf with the given initial capacity and the given
maximal capacity. |
ByteBuf |
CompositeByteBuf.internalComponent(int cIndex)
Return the internal
ByteBuf on the specified index. |
ByteBuf |
CompositeByteBuf.internalComponentAtOffset(int offset)
Return the internal
ByteBuf on the specified offset. |
ByteBuf |
AbstractByteBufAllocator.ioBuffer() |
ByteBuf |
ByteBufAllocator.ioBuffer()
Allocate a
ByteBuf , preferably a direct buffer which is suitable for I/O. |
ByteBuf |
AbstractByteBufAllocator.ioBuffer(int initialCapacity) |
ByteBuf |
ByteBufAllocator.ioBuffer(int initialCapacity)
Allocate a
ByteBuf , preferably a direct buffer which is suitable for I/O. |
ByteBuf |
AbstractByteBufAllocator.ioBuffer(int initialCapacity,
int maxCapacity) |
ByteBuf |
ByteBufAllocator.ioBuffer(int initialCapacity,
int maxCapacity)
Allocate a
ByteBuf , preferably a direct buffer which is suitable for I/O. |
abstract ByteBuf |
ByteBuf.markReaderIndex()
Marks the current
readerIndex in this buffer. |
ByteBuf |
AbstractByteBuf.markReaderIndex() |
ByteBuf |
SwappedByteBuf.markReaderIndex() |
ByteBuf |
EmptyByteBuf.markReaderIndex() |
ByteBuf |
WrappedByteBuf.markReaderIndex() |
abstract ByteBuf |
ByteBuf.markWriterIndex()
Marks the current
writerIndex in this buffer. |
ByteBuf |
AbstractByteBuf.markWriterIndex() |
ByteBuf |
SwappedByteBuf.markWriterIndex() |
ByteBuf |
EmptyByteBuf.markWriterIndex() |
ByteBuf |
WrappedByteBuf.markWriterIndex() |
protected ByteBuf |
PooledByteBufAllocator.newDirectBuffer(int initialCapacity,
int maxCapacity) |
protected ByteBuf |
UnpooledByteBufAllocator.newDirectBuffer(int initialCapacity,
int maxCapacity) |
protected abstract ByteBuf |
AbstractByteBufAllocator.newDirectBuffer(int initialCapacity,
int maxCapacity)
Create a direct
ByteBuf with the given initialCapacity and maxCapacity. |
protected ByteBuf |
PooledByteBufAllocator.newHeapBuffer(int initialCapacity,
int maxCapacity) |
protected ByteBuf |
UnpooledByteBufAllocator.newHeapBuffer(int initialCapacity,
int maxCapacity) |
protected abstract ByteBuf |
AbstractByteBufAllocator.newHeapBuffer(int initialCapacity,
int maxCapacity)
Create a heap
ByteBuf with the given initialCapacity and maxCapacity. |
abstract ByteBuf |
ByteBuf.order(ByteOrder endianness)
Returns a buffer with the specified
endianness which shares the whole region,
indexes, and marks of this buffer. |
ByteBuf |
AbstractByteBuf.order(ByteOrder endianness) |
ByteBuf |
SwappedByteBuf.order(ByteOrder endianness) |
ByteBuf |
EmptyByteBuf.order(ByteOrder endianness) |
ByteBuf |
WrappedByteBuf.order(ByteOrder endianness) |
abstract ByteBuf |
ByteBuf.readBytes(byte[] dst)
Transfers this buffer's data to the specified destination starting at
the current
readerIndex and increases the readerIndex
by the number of the transferred bytes (= dst.length ). |
ByteBuf |
AbstractByteBuf.readBytes(byte[] dst) |
ByteBuf |
SwappedByteBuf.readBytes(byte[] dst) |
ByteBuf |
EmptyByteBuf.readBytes(byte[] dst) |
ByteBuf |
WrappedByteBuf.readBytes(byte[] dst) |
ByteBuf |
UnpooledDirectByteBuf.readBytes(byte[] dst,
int dstIndex,
int length) |
abstract ByteBuf |
ByteBuf.readBytes(byte[] dst,
int dstIndex,
int length)
Transfers this buffer's data to the specified destination starting at
the current
readerIndex and increases the readerIndex
by the number of the transferred bytes (= length ). |
ByteBuf |
AbstractByteBuf.readBytes(byte[] dst,
int dstIndex,
int length) |
ByteBuf |
SwappedByteBuf.readBytes(byte[] dst,
int dstIndex,
int length) |
ByteBuf |
EmptyByteBuf.readBytes(byte[] dst,
int dstIndex,
int length) |
ByteBuf |
WrappedByteBuf.readBytes(byte[] dst,
int dstIndex,
int length) |
abstract ByteBuf |
ByteBuf.readBytes(ByteBuf dst)
Transfers this buffer's data to the specified destination starting at
the current
readerIndex until the destination becomes
non-writable, and increases the readerIndex by the number of the
transferred bytes. |
ByteBuf |
AbstractByteBuf.readBytes(ByteBuf dst) |
ByteBuf |
SwappedByteBuf.readBytes(ByteBuf dst) |
ByteBuf |
EmptyByteBuf.readBytes(ByteBuf dst) |
ByteBuf |
WrappedByteBuf.readBytes(ByteBuf dst) |
static ByteBuf |
ByteBufUtil.readBytes(ByteBufAllocator alloc,
ByteBuf buffer,
int length)
Read the given amount of bytes into a new
ByteBuf that is allocated from the ByteBufAllocator . |
ByteBuf |
UnpooledDirectByteBuf.readBytes(ByteBuffer dst) |
abstract ByteBuf |
ByteBuf.readBytes(ByteBuffer dst)
Transfers this buffer's data to the specified destination starting at
the current
readerIndex until the destination's position
reaches its limit, and increases the readerIndex by the
number of the transferred bytes. |
ByteBuf |
AbstractByteBuf.readBytes(ByteBuffer dst) |
ByteBuf |
SwappedByteBuf.readBytes(ByteBuffer dst) |
ByteBuf |
EmptyByteBuf.readBytes(ByteBuffer dst) |
ByteBuf |
UnpooledUnsafeDirectByteBuf.readBytes(ByteBuffer dst) |
ByteBuf |
WrappedByteBuf.readBytes(ByteBuffer dst) |
abstract ByteBuf |
ByteBuf.readBytes(ByteBuf dst,
int length)
Transfers this buffer's data to the specified destination starting at
the current
readerIndex and increases the readerIndex
by the number of the transferred bytes (= length ). |
ByteBuf |
AbstractByteBuf.readBytes(ByteBuf dst,
int length) |
ByteBuf |
SwappedByteBuf.readBytes(ByteBuf dst,
int length) |
ByteBuf |
EmptyByteBuf.readBytes(ByteBuf dst,
int length) |
ByteBuf |
WrappedByteBuf.readBytes(ByteBuf dst,
int length) |
abstract ByteBuf |
ByteBuf.readBytes(ByteBuf dst,
int dstIndex,
int length)
Transfers this buffer's data to the specified destination starting at
the current
readerIndex and increases the readerIndex
by the number of the transferred bytes (= length ). |
ByteBuf |
AbstractByteBuf.readBytes(ByteBuf dst,
int dstIndex,
int length) |
ByteBuf |
SwappedByteBuf.readBytes(ByteBuf dst,
int dstIndex,
int length) |
ByteBuf |
EmptyByteBuf.readBytes(ByteBuf dst,
int dstIndex,
int length) |
ByteBuf |
WrappedByteBuf.readBytes(ByteBuf dst,
int dstIndex,
int length) |
abstract ByteBuf |
ByteBuf.readBytes(int length)
Transfers this buffer's data to a newly created buffer starting at
the current
readerIndex and increases the readerIndex
by the number of the transferred bytes (= length ). |
ByteBuf |
AbstractByteBuf.readBytes(int length) |
ByteBuf |
SwappedByteBuf.readBytes(int length) |
ByteBuf |
EmptyByteBuf.readBytes(int length) |
ByteBuf |
WrappedByteBuf.readBytes(int length) |
ByteBuf |
UnpooledDirectByteBuf.readBytes(OutputStream out,
int length) |
abstract ByteBuf |
ByteBuf.readBytes(OutputStream out,
int length)
Transfers this buffer's data to the specified stream starting at the
current
readerIndex . |
ByteBuf |
AbstractByteBuf.readBytes(OutputStream out,
int length) |
ByteBuf |
SwappedByteBuf.readBytes(OutputStream out,
int length) |
ByteBuf |
EmptyByteBuf.readBytes(OutputStream out,
int length) |
ByteBuf |
WrappedByteBuf.readBytes(OutputStream out,
int length) |
abstract ByteBuf |
ByteBuf.readerIndex(int readerIndex)
Sets the
readerIndex of this buffer. |
ByteBuf |
AbstractByteBuf.readerIndex(int readerIndex) |
ByteBuf |
SwappedByteBuf.readerIndex(int readerIndex) |
ByteBuf |
EmptyByteBuf.readerIndex(int readerIndex) |
ByteBuf |
WrappedByteBuf.readerIndex(int readerIndex) |
abstract ByteBuf |
ByteBuf.readSlice(int length)
Returns a new slice of this buffer's sub-region starting at the current
readerIndex and increases the readerIndex by the size
of the new slice (= length ). |
ByteBuf |
AbstractByteBuf.readSlice(int length) |
ByteBuf |
SwappedByteBuf.readSlice(int length) |
ByteBuf |
EmptyByteBuf.readSlice(int length) |
ByteBuf |
WrappedByteBuf.readSlice(int length) |
abstract ByteBuf |
ByteBuf.resetReaderIndex()
Repositions the current
readerIndex to the marked
readerIndex in this buffer. |
ByteBuf |
AbstractByteBuf.resetReaderIndex() |
ByteBuf |
SwappedByteBuf.resetReaderIndex() |
ByteBuf |
EmptyByteBuf.resetReaderIndex() |
ByteBuf |
WrappedByteBuf.resetReaderIndex() |
abstract ByteBuf |
ByteBuf.resetWriterIndex()
Repositions the current
writerIndex to the marked
writerIndex in this buffer. |
ByteBuf |
AbstractByteBuf.resetWriterIndex() |
ByteBuf |
SwappedByteBuf.resetWriterIndex() |
ByteBuf |
EmptyByteBuf.resetWriterIndex() |
ByteBuf |
WrappedByteBuf.resetWriterIndex() |
ByteBuf |
AbstractDerivedByteBuf.retain() |
ByteBuf |
AbstractReferenceCountedByteBuf.retain() |
abstract ByteBuf |
ByteBuf.retain() |
ByteBuf |
SwappedByteBuf.retain() |
ByteBuf |
EmptyByteBuf.retain() |
ByteBuf |
WrappedByteBuf.retain() |
ByteBuf |
AbstractDerivedByteBuf.retain(int increment) |
ByteBuf |
AbstractReferenceCountedByteBuf.retain(int increment) |
abstract ByteBuf |
ByteBuf.retain(int increment) |
ByteBuf |
SwappedByteBuf.retain(int increment) |
ByteBuf |
EmptyByteBuf.retain(int increment) |
ByteBuf |
WrappedByteBuf.retain(int increment) |
abstract ByteBuf |
ByteBuf.setBoolean(int index,
boolean value)
Sets the specified boolean at the specified absolute
index in this
buffer. |
ByteBuf |
AbstractByteBuf.setBoolean(int index,
boolean value) |
ByteBuf |
SwappedByteBuf.setBoolean(int index,
boolean value) |
ByteBuf |
EmptyByteBuf.setBoolean(int index,
boolean value) |
ByteBuf |
WrappedByteBuf.setBoolean(int index,
boolean value) |
ByteBuf |
DuplicatedByteBuf.setByte(int index,
int value) |
ByteBuf |
ReadOnlyByteBuf.setByte(int index,
int value) |
ByteBuf |
UnpooledDirectByteBuf.setByte(int index,
int value) |
abstract ByteBuf |
ByteBuf.setByte(int index,
int value)
Sets the specified byte at the specified absolute
index in this
buffer. |
ByteBuf |
AbstractByteBuf.setByte(int index,
int value) |
ByteBuf |
SwappedByteBuf.setByte(int index,
int value) |
ByteBuf |
EmptyByteBuf.setByte(int index,
int value) |
ByteBuf |
WrappedByteBuf.setByte(int index,
int value) |
ByteBuf |
UnpooledHeapByteBuf.setByte(int index,
int value) |
abstract ByteBuf |
ByteBuf.setBytes(int index,
byte[] src)
Transfers the specified source array's data to this buffer starting at
the specified absolute
index . |
ByteBuf |
AbstractByteBuf.setBytes(int index,
byte[] src) |
ByteBuf |
SwappedByteBuf.setBytes(int index,
byte[] src) |
ByteBuf |
EmptyByteBuf.setBytes(int index,
byte[] src) |
ByteBuf |
WrappedByteBuf.setBytes(int index,
byte[] src) |
ByteBuf |
DuplicatedByteBuf.setBytes(int index,
byte[] src,
int srcIndex,
int length) |
ByteBuf |
ReadOnlyByteBuf.setBytes(int index,
byte[] src,
int srcIndex,
int length) |
ByteBuf |
UnpooledDirectByteBuf.setBytes(int index,
byte[] src,
int srcIndex,
int length) |
abstract ByteBuf |
ByteBuf.setBytes(int index,
byte[] src,
int srcIndex,
int length)
Transfers the specified source array's data to this buffer starting at
the specified absolute
index . |
ByteBuf |
SwappedByteBuf.setBytes(int index,
byte[] src,
int srcIndex,
int length) |
ByteBuf |
EmptyByteBuf.setBytes(int index,
byte[] src,
int srcIndex,
int length) |
ByteBuf |
SlicedByteBuf.setBytes(int index,
byte[] src,
int srcIndex,
int length) |
ByteBuf |
UnpooledUnsafeDirectByteBuf.setBytes(int index,
byte[] src,
int srcIndex,
int length) |
ByteBuf |
WrappedByteBuf.setBytes(int index,
byte[] src,
int srcIndex,
int length) |
ByteBuf |
UnpooledHeapByteBuf.setBytes(int index,
byte[] src,
int srcIndex,
int length) |
abstract ByteBuf |
ByteBuf.setBytes(int index,
ByteBuf src)
Transfers the specified source buffer's data to this buffer starting at
the specified absolute
index until the source buffer becomes
unreadable. |
ByteBuf |
AbstractByteBuf.setBytes(int index,
ByteBuf src) |
ByteBuf |
SwappedByteBuf.setBytes(int index,
ByteBuf src) |
ByteBuf |
EmptyByteBuf.setBytes(int index,
ByteBuf src) |
ByteBuf |
WrappedByteBuf.setBytes(int index,
ByteBuf src) |
ByteBuf |
DuplicatedByteBuf.setBytes(int index,
ByteBuffer src) |
ByteBuf |
ReadOnlyByteBuf.setBytes(int index,
ByteBuffer src) |
ByteBuf |
UnpooledDirectByteBuf.setBytes(int index,
ByteBuffer src) |
abstract ByteBuf |
ByteBuf.setBytes(int index,
ByteBuffer src)
Transfers the specified source buffer's data to this buffer starting at
the specified absolute
index until the source buffer's position
reaches its limit. |
ByteBuf |
SwappedByteBuf.setBytes(int index,
ByteBuffer src) |
ByteBuf |
EmptyByteBuf.setBytes(int index,
ByteBuffer src) |
ByteBuf |
SlicedByteBuf.setBytes(int index,
ByteBuffer src) |
ByteBuf |
UnpooledUnsafeDirectByteBuf.setBytes(int index,
ByteBuffer src) |
ByteBuf |
WrappedByteBuf.setBytes(int index,
ByteBuffer src) |
ByteBuf |
UnpooledHeapByteBuf.setBytes(int index,
ByteBuffer src) |
abstract ByteBuf |
ByteBuf.setBytes(int index,
ByteBuf src,
int length)
Transfers the specified source buffer's data to this buffer starting at
the specified absolute
index . |
ByteBuf |
AbstractByteBuf.setBytes(int index,
ByteBuf src,
int length) |
ByteBuf |
SwappedByteBuf.setBytes(int index,
ByteBuf src,
int length) |
ByteBuf |
EmptyByteBuf.setBytes(int index,
ByteBuf src,
int length) |
ByteBuf |
WrappedByteBuf.setBytes(int index,
ByteBuf src,
int length) |
ByteBuf |
DuplicatedByteBuf.setBytes(int index,
ByteBuf src,
int srcIndex,
int length) |
ByteBuf |
ReadOnlyByteBuf.setBytes(int index,
ByteBuf src,
int srcIndex,
int length) |
ByteBuf |
UnpooledDirectByteBuf.setBytes(int index,
ByteBuf src,
int srcIndex,
int length) |
abstract ByteBuf |
ByteBuf.setBytes(int index,
ByteBuf src,
int srcIndex,
int length)
Transfers the specified source buffer's data to this buffer starting at
the specified absolute
index . |
ByteBuf |
SwappedByteBuf.setBytes(int index,
ByteBuf src,
int srcIndex,
int length) |
ByteBuf |
EmptyByteBuf.setBytes(int index,
ByteBuf src,
int srcIndex,
int length) |
ByteBuf |
SlicedByteBuf.setBytes(int index,
ByteBuf src,
int srcIndex,
int length) |
ByteBuf |
UnpooledUnsafeDirectByteBuf.setBytes(int index,
ByteBuf src,
int srcIndex,
int length) |
ByteBuf |
WrappedByteBuf.setBytes(int index,
ByteBuf src,
int srcIndex,
int length) |
ByteBuf |
UnpooledHeapByteBuf.setBytes(int index,
ByteBuf src,
int srcIndex,
int length) |
abstract ByteBuf |
ByteBuf.setChar(int index,
int value)
Sets the specified 2-byte UTF-16 character at the specified absolute
index in this buffer. |
ByteBuf |
AbstractByteBuf.setChar(int index,
int value) |
ByteBuf |
SwappedByteBuf.setChar(int index,
int value) |
ByteBuf |
EmptyByteBuf.setChar(int index,
int value) |
ByteBuf |
WrappedByteBuf.setChar(int index,
int value) |
abstract ByteBuf |
ByteBuf.setDouble(int index,
double value)
Sets the specified 64-bit floating-point number at the specified
absolute
index in this buffer. |
ByteBuf |
AbstractByteBuf.setDouble(int index,
double value) |
ByteBuf |
SwappedByteBuf.setDouble(int index,
double value) |
ByteBuf |
EmptyByteBuf.setDouble(int index,
double value) |
ByteBuf |
WrappedByteBuf.setDouble(int index,
double value) |
abstract ByteBuf |
ByteBuf.setFloat(int index,
float value)
Sets the specified 32-bit floating-point number at the specified
absolute
index in this buffer. |
ByteBuf |
AbstractByteBuf.setFloat(int index,
float value) |
ByteBuf |
SwappedByteBuf.setFloat(int index,
float value) |
ByteBuf |
EmptyByteBuf.setFloat(int index,
float value) |
ByteBuf |
WrappedByteBuf.setFloat(int index,
float value) |
abstract ByteBuf |
ByteBuf.setIndex(int readerIndex,
int writerIndex)
Sets the
readerIndex and writerIndex of this buffer
in one shot. |
ByteBuf |
AbstractByteBuf.setIndex(int readerIndex,
int writerIndex) |
ByteBuf |
SwappedByteBuf.setIndex(int readerIndex,
int writerIndex) |
ByteBuf |
EmptyByteBuf.setIndex(int readerIndex,
int writerIndex) |
ByteBuf |
WrappedByteBuf.setIndex(int readerIndex,
int writerIndex) |
ByteBuf |
DuplicatedByteBuf.setInt(int index,
int value) |
ByteBuf |
ReadOnlyByteBuf.setInt(int index,
int value) |
ByteBuf |
UnpooledDirectByteBuf.setInt(int index,
int value) |
abstract ByteBuf |
ByteBuf.setInt(int index,
int value)
Sets the specified 32-bit integer at the specified absolute
index in this buffer. |
ByteBuf |
AbstractByteBuf.setInt(int index,
int value) |
ByteBuf |
SwappedByteBuf.setInt(int index,
int value) |
ByteBuf |
EmptyByteBuf.setInt(int index,
int value) |
ByteBuf |
WrappedByteBuf.setInt(int index,
int value) |
ByteBuf |
UnpooledHeapByteBuf.setInt(int index,
int value) |
ByteBuf |
DuplicatedByteBuf.setLong(int index,
long value) |
ByteBuf |
ReadOnlyByteBuf.setLong(int index,
long value) |
ByteBuf |
UnpooledDirectByteBuf.setLong(int index,
long value) |
abstract ByteBuf |
ByteBuf.setLong(int index,
long value)
Sets the specified 64-bit long integer at the specified absolute
index in this buffer. |
ByteBuf |
AbstractByteBuf.setLong(int index,
long value) |
ByteBuf |
SwappedByteBuf.setLong(int index,
long value) |
ByteBuf |
EmptyByteBuf.setLong(int index,
long value) |
ByteBuf |
WrappedByteBuf.setLong(int index,
long value) |
ByteBuf |
UnpooledHeapByteBuf.setLong(int index,
long value) |
ByteBuf |
DuplicatedByteBuf.setMedium(int index,
int value) |
ByteBuf |
ReadOnlyByteBuf.setMedium(int index,
int value) |
ByteBuf |
UnpooledDirectByteBuf.setMedium(int index,
int value) |
abstract ByteBuf |
ByteBuf.setMedium(int index,
int value)
Sets the specified 24-bit medium integer at the specified absolute
index in this buffer. |
ByteBuf |
AbstractByteBuf.setMedium(int index,
int value) |
ByteBuf |
SwappedByteBuf.setMedium(int index,
int value) |
ByteBuf |
EmptyByteBuf.setMedium(int index,
int value) |
ByteBuf |
WrappedByteBuf.setMedium(int index,
int value) |
ByteBuf |
UnpooledHeapByteBuf.setMedium(int index,
int value) |
ByteBuf |
DuplicatedByteBuf.setShort(int index,
int value) |
ByteBuf |
ReadOnlyByteBuf.setShort(int index,
int value) |
ByteBuf |
UnpooledDirectByteBuf.setShort(int index,
int value) |
abstract ByteBuf |
ByteBuf.setShort(int index,
int value)
Sets the specified 16-bit short integer at the specified absolute
index in this buffer. |
ByteBuf |
AbstractByteBuf.setShort(int index,
int value) |
ByteBuf |
SwappedByteBuf.setShort(int index,
int value) |
ByteBuf |
EmptyByteBuf.setShort(int index,
int value) |
ByteBuf |
WrappedByteBuf.setShort(int index,
int value) |
ByteBuf |
UnpooledHeapByteBuf.setShort(int index,
int value) |
abstract ByteBuf |
ByteBuf.setZero(int index,
int length)
Fills this buffer with NUL (0x00) starting at the specified
absolute
index . |
ByteBuf |
AbstractByteBuf.setZero(int index,
int length) |
ByteBuf |
SwappedByteBuf.setZero(int index,
int length) |
ByteBuf |
EmptyByteBuf.setZero(int index,
int length) |
ByteBuf |
WrappedByteBuf.setZero(int index,
int length) |
abstract ByteBuf |
ByteBuf.skipBytes(int length)
Increases the current
readerIndex by the specified
length in this buffer. |
ByteBuf |
AbstractByteBuf.skipBytes(int length) |
ByteBuf |
SwappedByteBuf.skipBytes(int length) |
ByteBuf |
EmptyByteBuf.skipBytes(int length) |
ByteBuf |
WrappedByteBuf.skipBytes(int length) |
abstract ByteBuf |
ByteBuf.slice()
Returns a slice of this buffer's readable bytes.
|
ByteBuf |
AbstractByteBuf.slice() |
ByteBuf |
SwappedByteBuf.slice() |
ByteBuf |
EmptyByteBuf.slice() |
ByteBuf |
WrappedByteBuf.slice() |
ByteBuf |
DuplicatedByteBuf.slice(int index,
int length) |
ByteBuf |
ReadOnlyByteBuf.slice(int index,
int length) |
abstract ByteBuf |
ByteBuf.slice(int index,
int length)
Returns a slice of this buffer's sub-region.
|
ByteBuf |
AbstractByteBuf.slice(int index,
int length) |
ByteBuf |
SwappedByteBuf.slice(int index,
int length) |
ByteBuf |
EmptyByteBuf.slice(int index,
int length) |
ByteBuf |
SlicedByteBuf.slice(int index,
int length) |
ByteBuf |
WrappedByteBuf.slice(int index,
int length) |
static ByteBuf |
ByteBufUtil.threadLocalDirectBuffer()
Returns a cached thread-local direct buffer, if available.
|
protected static ByteBuf |
AbstractByteBufAllocator.toLeakAwareBuffer(ByteBuf buf) |
ByteBuf |
AbstractDerivedByteBuf.touch() |
ByteBuf |
AbstractReferenceCountedByteBuf.touch() |
abstract ByteBuf |
ByteBuf.touch() |
ByteBuf |
SwappedByteBuf.touch() |
ByteBuf |
EmptyByteBuf.touch() |
ByteBuf |
WrappedByteBuf.touch() |
ByteBuf |
AbstractDerivedByteBuf.touch(Object hint) |
ByteBuf |
AbstractReferenceCountedByteBuf.touch(Object hint) |
abstract ByteBuf |
ByteBuf.touch(Object hint) |
ByteBuf |
SwappedByteBuf.touch(Object hint) |
ByteBuf |
EmptyByteBuf.touch(Object hint) |
ByteBuf |
WrappedByteBuf.touch(Object hint) |
static ByteBuf |
Unpooled.unmodifiableBuffer(ByteBuf... buffers)
|
static ByteBuf |
Unpooled.unmodifiableBuffer(ByteBuf buffer)
Creates a read-only buffer which disallows any modification operations
on the specified
buffer . |
static ByteBuf |
Unpooled.unreleasableBuffer(ByteBuf buf)
Return a unreleasable view on the given
ByteBuf which will just ignore release and retain calls. |
ByteBuf |
DuplicatedByteBuf.unwrap() |
ByteBuf |
ReadOnlyByteBuf.unwrap() |
ByteBuf |
CompositeByteBuf.unwrap() |
ByteBuf |
UnpooledDirectByteBuf.unwrap() |
abstract ByteBuf |
ByteBuf.unwrap()
Return the underlying buffer instance if this buffer is a wrapper of another buffer.
|
ByteBuf |
SwappedByteBuf.unwrap() |
ByteBuf |
EmptyByteBuf.unwrap() |
ByteBuf |
SlicedByteBuf.unwrap() |
ByteBuf |
UnpooledUnsafeDirectByteBuf.unwrap() |
ByteBuf |
WrappedByteBuf.unwrap() |
ByteBuf |
UnpooledHeapByteBuf.unwrap() |
static ByteBuf |
Unpooled.wrappedBuffer(byte[]... arrays)
Creates a new big-endian composite buffer which wraps the specified
arrays without copying them.
|
static ByteBuf |
Unpooled.wrappedBuffer(byte[] array)
Creates a new big-endian buffer which wraps the specified
array . |
static ByteBuf |
Unpooled.wrappedBuffer(byte[] array,
int offset,
int length)
Creates a new big-endian buffer which wraps the sub-region of the
specified
array . |
static ByteBuf |
Unpooled.wrappedBuffer(ByteBuf... buffers)
Creates a new big-endian composite buffer which wraps the readable bytes of the
specified buffers without copying them.
|
static ByteBuf |
Unpooled.wrappedBuffer(ByteBuf buffer)
Creates a new buffer which wraps the specified buffer's readable bytes.
|
static ByteBuf |
Unpooled.wrappedBuffer(ByteBuffer... buffers)
Creates a new big-endian composite buffer which wraps the slices of the specified
NIO buffers without copying them.
|
static ByteBuf |
Unpooled.wrappedBuffer(ByteBuffer buffer)
Creates a new buffer which wraps the specified NIO buffer's current
slice.
|
static ByteBuf |
Unpooled.wrappedBuffer(int maxNumComponents,
byte[]... arrays)
Creates a new big-endian composite buffer which wraps the specified
arrays without copying them.
|
static ByteBuf |
Unpooled.wrappedBuffer(int maxNumComponents,
ByteBuf... buffers)
Creates a new big-endian composite buffer which wraps the readable bytes of the
specified buffers without copying them.
|
static ByteBuf |
Unpooled.wrappedBuffer(int maxNumComponents,
ByteBuffer... buffers)
Creates a new big-endian composite buffer which wraps the slices of the specified
NIO buffers without copying them.
|
abstract ByteBuf |
ByteBuf.writeBoolean(boolean value)
Sets the specified boolean at the current
writerIndex
and increases the writerIndex by 1 in this buffer. |
ByteBuf |
AbstractByteBuf.writeBoolean(boolean value) |
ByteBuf |
SwappedByteBuf.writeBoolean(boolean value) |
ByteBuf |
EmptyByteBuf.writeBoolean(boolean value) |
ByteBuf |
WrappedByteBuf.writeBoolean(boolean value) |
abstract ByteBuf |
ByteBuf.writeByte(int value)
Sets the specified byte at the current
writerIndex
and increases the writerIndex by 1 in this buffer. |
ByteBuf |
AbstractByteBuf.writeByte(int value) |
ByteBuf |
SwappedByteBuf.writeByte(int value) |
ByteBuf |
EmptyByteBuf.writeByte(int value) |
ByteBuf |
WrappedByteBuf.writeByte(int value) |
abstract ByteBuf |
ByteBuf.writeBytes(byte[] src)
Transfers the specified source array's data to this buffer starting at
the current
writerIndex and increases the writerIndex
by the number of the transferred bytes (= src.length ). |
ByteBuf |
AbstractByteBuf.writeBytes(byte[] src) |
ByteBuf |
SwappedByteBuf.writeBytes(byte[] src) |
ByteBuf |
EmptyByteBuf.writeBytes(byte[] src) |
ByteBuf |
WrappedByteBuf.writeBytes(byte[] src) |
abstract ByteBuf |
ByteBuf.writeBytes(byte[] src,
int srcIndex,
int length)
Transfers the specified source array's data to this buffer starting at
the current
writerIndex and increases the writerIndex
by the number of the transferred bytes (= length ). |
ByteBuf |
AbstractByteBuf.writeBytes(byte[] src,
int srcIndex,
int length) |
ByteBuf |
SwappedByteBuf.writeBytes(byte[] src,
int srcIndex,
int length) |
ByteBuf |
EmptyByteBuf.writeBytes(byte[] src,
int srcIndex,
int length) |
ByteBuf |
WrappedByteBuf.writeBytes(byte[] src,
int srcIndex,
int length) |
abstract ByteBuf |
ByteBuf.writeBytes(ByteBuf src)
Transfers the specified source buffer's data to this buffer starting at
the current
writerIndex until the source buffer becomes
unreadable, and increases the writerIndex by the number of
the transferred bytes. |
ByteBuf |
AbstractByteBuf.writeBytes(ByteBuf src) |
ByteBuf |
SwappedByteBuf.writeBytes(ByteBuf src) |
ByteBuf |
EmptyByteBuf.writeBytes(ByteBuf src) |
ByteBuf |
WrappedByteBuf.writeBytes(ByteBuf src) |
abstract ByteBuf |
ByteBuf.writeBytes(ByteBuffer src)
Transfers the specified source buffer's data to this buffer starting at
the current
writerIndex until the source buffer's position
reaches its limit, and increases the writerIndex by the
number of the transferred bytes. |
ByteBuf |
AbstractByteBuf.writeBytes(ByteBuffer src) |
ByteBuf |
SwappedByteBuf.writeBytes(ByteBuffer src) |
ByteBuf |
EmptyByteBuf.writeBytes(ByteBuffer src) |
ByteBuf |
WrappedByteBuf.writeBytes(ByteBuffer src) |
abstract ByteBuf |
ByteBuf.writeBytes(ByteBuf src,
int length)
Transfers the specified source buffer's data to this buffer starting at
the current
writerIndex and increases the writerIndex
by the number of the transferred bytes (= length ). |
ByteBuf |
AbstractByteBuf.writeBytes(ByteBuf src,
int length) |
ByteBuf |
SwappedByteBuf.writeBytes(ByteBuf src,
int length) |
ByteBuf |
EmptyByteBuf.writeBytes(ByteBuf src,
int length) |
ByteBuf |
WrappedByteBuf.writeBytes(ByteBuf src,
int length) |
abstract ByteBuf |
ByteBuf.writeBytes(ByteBuf src,
int srcIndex,
int length)
Transfers the specified source buffer's data to this buffer starting at
the current
writerIndex and increases the writerIndex
by the number of the transferred bytes (= length ). |
ByteBuf |
AbstractByteBuf.writeBytes(ByteBuf src,
int srcIndex,
int length) |
ByteBuf |
SwappedByteBuf.writeBytes(ByteBuf src,
int srcIndex,
int length) |
ByteBuf |
EmptyByteBuf.writeBytes(ByteBuf src,
int srcIndex,
int length) |
ByteBuf |
WrappedByteBuf.writeBytes(ByteBuf src,
int srcIndex,
int length) |
abstract ByteBuf |
ByteBuf.writeChar(int value)
Sets the specified 2-byte UTF-16 character at the current
writerIndex and increases the writerIndex by 2
in this buffer. |
ByteBuf |
AbstractByteBuf.writeChar(int value) |
ByteBuf |
SwappedByteBuf.writeChar(int value) |
ByteBuf |
EmptyByteBuf.writeChar(int value) |
ByteBuf |
WrappedByteBuf.writeChar(int value) |
abstract ByteBuf |
ByteBuf.writeDouble(double value)
Sets the specified 64-bit floating point number at the current
writerIndex and increases the writerIndex by 8
in this buffer. |
ByteBuf |
AbstractByteBuf.writeDouble(double value) |
ByteBuf |
SwappedByteBuf.writeDouble(double value) |
ByteBuf |
EmptyByteBuf.writeDouble(double value) |
ByteBuf |
WrappedByteBuf.writeDouble(double value) |
abstract ByteBuf |
ByteBuf.writeFloat(float value)
Sets the specified 32-bit floating point number at the current
writerIndex and increases the writerIndex by 4
in this buffer. |
ByteBuf |
AbstractByteBuf.writeFloat(float value) |
ByteBuf |
SwappedByteBuf.writeFloat(float value) |
ByteBuf |
EmptyByteBuf.writeFloat(float value) |
ByteBuf |
WrappedByteBuf.writeFloat(float value) |
abstract ByteBuf |
ByteBuf.writeInt(int value)
Sets the specified 32-bit integer at the current
writerIndex
and increases the writerIndex by 4 in this buffer. |
ByteBuf |
AbstractByteBuf.writeInt(int value) |
ByteBuf |
SwappedByteBuf.writeInt(int value) |
ByteBuf |
EmptyByteBuf.writeInt(int value) |
ByteBuf |
WrappedByteBuf.writeInt(int value) |
abstract ByteBuf |
ByteBuf.writeLong(long value)
Sets the specified 64-bit long integer at the current
writerIndex and increases the writerIndex by 8
in this buffer. |
ByteBuf |
AbstractByteBuf.writeLong(long value) |
ByteBuf |
SwappedByteBuf.writeLong(long value) |
ByteBuf |
EmptyByteBuf.writeLong(long value) |
ByteBuf |
WrappedByteBuf.writeLong(long value) |
abstract ByteBuf |
ByteBuf.writeMedium(int value)
Sets the specified 24-bit medium integer at the current
writerIndex and increases the writerIndex by 3
in this buffer. |
ByteBuf |
AbstractByteBuf.writeMedium(int value) |
ByteBuf |
SwappedByteBuf.writeMedium(int value) |
ByteBuf |
EmptyByteBuf.writeMedium(int value) |
ByteBuf |
WrappedByteBuf.writeMedium(int value) |
abstract ByteBuf |
ByteBuf.writerIndex(int writerIndex)
Sets the
writerIndex of this buffer. |
ByteBuf |
AbstractByteBuf.writerIndex(int writerIndex) |
ByteBuf |
SwappedByteBuf.writerIndex(int writerIndex) |
ByteBuf |
EmptyByteBuf.writerIndex(int writerIndex) |
ByteBuf |
WrappedByteBuf.writerIndex(int writerIndex) |
abstract ByteBuf |
ByteBuf.writeShort(int value)
Sets the specified 16-bit short integer at the current
writerIndex and increases the writerIndex by 2
in this buffer. |
ByteBuf |
AbstractByteBuf.writeShort(int value) |
ByteBuf |
SwappedByteBuf.writeShort(int value) |
ByteBuf |
EmptyByteBuf.writeShort(int value) |
ByteBuf |
WrappedByteBuf.writeShort(int value) |
abstract ByteBuf |
ByteBuf.writeZero(int length)
Fills this buffer with NUL (0x00) starting at the current
writerIndex and increases the writerIndex by the
specified length . |
ByteBuf |
AbstractByteBuf.writeZero(int length) |
ByteBuf |
SwappedByteBuf.writeZero(int length) |
ByteBuf |
EmptyByteBuf.writeZero(int length) |
ByteBuf |
WrappedByteBuf.writeZero(int length) |
Modifier and Type | Method and Description |
---|---|
List<ByteBuf> |
CompositeByteBuf.decompose(int offset,
int length)
Same with
AbstractByteBuf.slice(int, int) except that this method returns a list. |
Iterator<ByteBuf> |
CompositeByteBuf.iterator() |
Modifier and Type | Method and Description |
---|---|
CompositeByteBuf |
CompositeByteBuf.addComponent(ByteBuf buffer)
Add the given
ByteBuf . |
CompositeByteBuf |
CompositeByteBuf.addComponent(int cIndex,
ByteBuf buffer)
Add the given
ByteBuf on the specific index. |
CompositeByteBuf |
CompositeByteBuf.addComponents(ByteBuf... buffers)
Add the given
ByteBuf s. |
CompositeByteBuf |
CompositeByteBuf.addComponents(int cIndex,
ByteBuf... buffers)
Add the given
ByteBuf s on the specific index
Be aware that this method does not increase the writerIndex of the CompositeByteBuf . |
static int |
ByteBufUtil.compare(ByteBuf bufferA,
ByteBuf bufferB)
Compares the two specified buffers as described in
compareTo(ByteBuf) . |
abstract int |
ByteBuf.compareTo(ByteBuf buffer)
Compares the content of the specified buffer to the content of this
buffer.
|
int |
AbstractByteBuf.compareTo(ByteBuf that) |
int |
SwappedByteBuf.compareTo(ByteBuf buffer) |
int |
EmptyByteBuf.compareTo(ByteBuf buffer) |
int |
WrappedByteBuf.compareTo(ByteBuf buffer) |
static ByteBuf |
Unpooled.copiedBuffer(ByteBuf... buffers)
Creates a new buffer whose content is a merged copy of the specified
buffers ' readable bytes. |
static ByteBuf |
Unpooled.copiedBuffer(ByteBuf buffer)
Creates a new buffer whose content is a copy of the specified
buffer 's readable bytes. |
static boolean |
ByteBufUtil.equals(ByteBuf bufferA,
ByteBuf bufferB)
Returns
true if and only if the two specified buffers are
identical to each other as described in ChannelBuffer#equals(Object) . |
CompositeByteBuf |
CompositeByteBuf.getBytes(int index,
ByteBuf dst) |
abstract ByteBuf |
ByteBuf.getBytes(int index,
ByteBuf dst)
Transfers this buffer's data to the specified destination starting at
the specified absolute
index until the destination becomes
non-writable. |
ByteBuf |
AbstractByteBuf.getBytes(int index,
ByteBuf dst) |
ByteBuf |
SwappedByteBuf.getBytes(int index,
ByteBuf dst) |
ByteBuf |
EmptyByteBuf.getBytes(int index,
ByteBuf dst) |
ByteBuf |
WrappedByteBuf.getBytes(int index,
ByteBuf dst) |
CompositeByteBuf |
CompositeByteBuf.getBytes(int index,
ByteBuf dst,
int length) |
abstract ByteBuf |
ByteBuf.getBytes(int index,
ByteBuf dst,
int length)
Transfers this buffer's data to the specified destination starting at
the specified absolute
index . |
ByteBuf |
AbstractByteBuf.getBytes(int index,
ByteBuf dst,
int length) |
ByteBuf |
SwappedByteBuf.getBytes(int index,
ByteBuf dst,
int length) |
ByteBuf |
EmptyByteBuf.getBytes(int index,
ByteBuf dst,
int length) |
ByteBuf |
WrappedByteBuf.getBytes(int index,
ByteBuf dst,
int length) |
ByteBuf |
DuplicatedByteBuf.getBytes(int index,
ByteBuf dst,
int dstIndex,
int length) |
ByteBuf |
ReadOnlyByteBuf.getBytes(int index,
ByteBuf dst,
int dstIndex,
int length) |
CompositeByteBuf |
CompositeByteBuf.getBytes(int index,
ByteBuf dst,
int dstIndex,
int length) |
ByteBuf |
UnpooledDirectByteBuf.getBytes(int index,
ByteBuf dst,
int dstIndex,
int length) |
abstract ByteBuf |
ByteBuf.getBytes(int index,
ByteBuf dst,
int dstIndex,
int length)
Transfers this buffer's data to the specified destination starting at
the specified absolute
index . |
ByteBuf |
SwappedByteBuf.getBytes(int index,
ByteBuf dst,
int dstIndex,
int length) |
ByteBuf |
EmptyByteBuf.getBytes(int index,
ByteBuf dst,
int dstIndex,
int length) |
ByteBuf |
SlicedByteBuf.getBytes(int index,
ByteBuf dst,
int dstIndex,
int length) |
ByteBuf |
UnpooledUnsafeDirectByteBuf.getBytes(int index,
ByteBuf dst,
int dstIndex,
int length) |
ByteBuf |
WrappedByteBuf.getBytes(int index,
ByteBuf dst,
int dstIndex,
int length) |
ByteBuf |
UnpooledHeapByteBuf.getBytes(int index,
ByteBuf dst,
int dstIndex,
int length) |
static int |
ByteBufUtil.hashCode(ByteBuf buffer)
Calculates the hash code of the specified buffer.
|
static String |
ByteBufUtil.hexDump(ByteBuf buffer)
Returns a hex dump
of the specified buffer's readable bytes.
|
static String |
ByteBufUtil.hexDump(ByteBuf buffer,
int fromIndex,
int length)
Returns a hex dump
of the specified buffer's sub-region.
|
static int |
ByteBufUtil.indexOf(ByteBuf buffer,
int fromIndex,
int toIndex,
byte value)
The default implementation of
indexOf(int, int, byte) . |
CompositeByteBuf |
CompositeByteBuf.readBytes(ByteBuf dst) |
abstract ByteBuf |
ByteBuf.readBytes(ByteBuf dst)
Transfers this buffer's data to the specified destination starting at
the current
readerIndex until the destination becomes
non-writable, and increases the readerIndex by the number of the
transferred bytes. |
ByteBuf |
AbstractByteBuf.readBytes(ByteBuf dst) |
ByteBuf |
SwappedByteBuf.readBytes(ByteBuf dst) |
ByteBuf |
EmptyByteBuf.readBytes(ByteBuf dst) |
ByteBuf |
WrappedByteBuf.readBytes(ByteBuf dst) |
static ByteBuf |
ByteBufUtil.readBytes(ByteBufAllocator alloc,
ByteBuf buffer,
int length)
Read the given amount of bytes into a new
ByteBuf that is allocated from the ByteBufAllocator . |
CompositeByteBuf |
CompositeByteBuf.readBytes(ByteBuf dst,
int length) |
abstract ByteBuf |
ByteBuf.readBytes(ByteBuf dst,
int length)
Transfers this buffer's data to the specified destination starting at
the current
readerIndex and increases the readerIndex
by the number of the transferred bytes (= length ). |
ByteBuf |
AbstractByteBuf.readBytes(ByteBuf dst,
int length) |
ByteBuf |
SwappedByteBuf.readBytes(ByteBuf dst,
int length) |
ByteBuf |
EmptyByteBuf.readBytes(ByteBuf dst,
int length) |
ByteBuf |
WrappedByteBuf.readBytes(ByteBuf dst,
int length) |
CompositeByteBuf |
CompositeByteBuf.readBytes(ByteBuf dst,
int dstIndex,
int length) |
abstract ByteBuf |
ByteBuf.readBytes(ByteBuf dst,
int dstIndex,
int length)
Transfers this buffer's data to the specified destination starting at
the current
readerIndex and increases the readerIndex
by the number of the transferred bytes (= length ). |
ByteBuf |
AbstractByteBuf.readBytes(ByteBuf dst,
int dstIndex,
int length) |
ByteBuf |
SwappedByteBuf.readBytes(ByteBuf dst,
int dstIndex,
int length) |
ByteBuf |
EmptyByteBuf.readBytes(ByteBuf dst,
int dstIndex,
int length) |
ByteBuf |
WrappedByteBuf.readBytes(ByteBuf dst,
int dstIndex,
int length) |
CompositeByteBuf |
CompositeByteBuf.setBytes(int index,
ByteBuf src) |
abstract ByteBuf |
ByteBuf.setBytes(int index,
ByteBuf src)
Transfers the specified source buffer's data to this buffer starting at
the specified absolute
index until the source buffer becomes
unreadable. |
ByteBuf |
AbstractByteBuf.setBytes(int index,
ByteBuf src) |
ByteBuf |
SwappedByteBuf.setBytes(int index,
ByteBuf src) |
ByteBuf |
EmptyByteBuf.setBytes(int index,
ByteBuf src) |
ByteBuf |
WrappedByteBuf.setBytes(int index,
ByteBuf src) |
CompositeByteBuf |
CompositeByteBuf.setBytes(int index,
ByteBuf src,
int length) |
abstract ByteBuf |
ByteBuf.setBytes(int index,
ByteBuf src,
int length)
Transfers the specified source buffer's data to this buffer starting at
the specified absolute
index . |
ByteBuf |
AbstractByteBuf.setBytes(int index,
ByteBuf src,
int length) |
ByteBuf |
SwappedByteBuf.setBytes(int index,
ByteBuf src,
int length) |
ByteBuf |
EmptyByteBuf.setBytes(int index,
ByteBuf src,
int length) |
ByteBuf |
WrappedByteBuf.setBytes(int index,
ByteBuf src,
int length) |
ByteBuf |
DuplicatedByteBuf.setBytes(int index,
ByteBuf src,
int srcIndex,
int length) |
ByteBuf |
ReadOnlyByteBuf.setBytes(int index,
ByteBuf src,
int srcIndex,
int length) |
CompositeByteBuf |
CompositeByteBuf.setBytes(int index,
ByteBuf src,
int srcIndex,
int length) |
ByteBuf |
UnpooledDirectByteBuf.setBytes(int index,
ByteBuf src,
int srcIndex,
int length) |
abstract ByteBuf |
ByteBuf.setBytes(int index,
ByteBuf src,
int srcIndex,
int length)
Transfers the specified source buffer's data to this buffer starting at
the specified absolute
index . |
ByteBuf |
SwappedByteBuf.setBytes(int index,
ByteBuf src,
int srcIndex,
int length) |
ByteBuf |
EmptyByteBuf.setBytes(int index,
ByteBuf src,
int srcIndex,
int length) |
ByteBuf |
SlicedByteBuf.setBytes(int index,
ByteBuf src,
int srcIndex,
int length) |
ByteBuf |
UnpooledUnsafeDirectByteBuf.setBytes(int index,
ByteBuf src,
int srcIndex,
int length) |
ByteBuf |
WrappedByteBuf.setBytes(int index,
ByteBuf src,
int srcIndex,
int length) |
ByteBuf |
UnpooledHeapByteBuf.setBytes(int index,
ByteBuf src,
int srcIndex,
int length) |
protected static ByteBuf |
AbstractByteBufAllocator.toLeakAwareBuffer(ByteBuf buf) |
static ByteBuf |
Unpooled.unmodifiableBuffer(ByteBuf... buffers)
|
static ByteBuf |
Unpooled.unmodifiableBuffer(ByteBuf buffer)
Creates a read-only buffer which disallows any modification operations
on the specified
buffer . |
static ByteBuf |
Unpooled.unreleasableBuffer(ByteBuf buf)
Return a unreleasable view on the given
ByteBuf which will just ignore release and retain calls. |
static ByteBuf |
Unpooled.wrappedBuffer(ByteBuf... buffers)
Creates a new big-endian composite buffer which wraps the readable bytes of the
specified buffers without copying them.
|
static ByteBuf |
Unpooled.wrappedBuffer(ByteBuf buffer)
Creates a new buffer which wraps the specified buffer's readable bytes.
|
static ByteBuf |
Unpooled.wrappedBuffer(int maxNumComponents,
ByteBuf... buffers)
Creates a new big-endian composite buffer which wraps the readable bytes of the
specified buffers without copying them.
|
static int |
ByteBufUtil.writeAscii(ByteBuf buf,
CharSequence seq)
|
CompositeByteBuf |
CompositeByteBuf.writeBytes(ByteBuf src) |
abstract ByteBuf |
ByteBuf.writeBytes(ByteBuf src)
Transfers the specified source buffer's data to this buffer starting at
the current
writerIndex until the source buffer becomes
unreadable, and increases the writerIndex by the number of
the transferred bytes. |
ByteBuf |
AbstractByteBuf.writeBytes(ByteBuf src) |
ByteBuf |
SwappedByteBuf.writeBytes(ByteBuf src) |
ByteBuf |
EmptyByteBuf.writeBytes(ByteBuf src) |
ByteBuf |
WrappedByteBuf.writeBytes(ByteBuf src) |
CompositeByteBuf |
CompositeByteBuf.writeBytes(ByteBuf src,
int length) |
abstract ByteBuf |
ByteBuf.writeBytes(ByteBuf src,
int length)
Transfers the specified source buffer's data to this buffer starting at
the current
writerIndex and increases the writerIndex
by the number of the transferred bytes (= length ). |
ByteBuf |
AbstractByteBuf.writeBytes(ByteBuf src,
int length) |
ByteBuf |
SwappedByteBuf.writeBytes(ByteBuf src,
int length) |
ByteBuf |
EmptyByteBuf.writeBytes(ByteBuf src,
int length) |
ByteBuf |
WrappedByteBuf.writeBytes(ByteBuf src,
int length) |
CompositeByteBuf |
CompositeByteBuf.writeBytes(ByteBuf src,
int srcIndex,
int length) |
abstract ByteBuf |
ByteBuf.writeBytes(ByteBuf src,
int srcIndex,
int length)
Transfers the specified source buffer's data to this buffer starting at
the current
writerIndex and increases the writerIndex
by the number of the transferred bytes (= length ). |
ByteBuf |
AbstractByteBuf.writeBytes(ByteBuf src,
int srcIndex,
int length) |
ByteBuf |
SwappedByteBuf.writeBytes(ByteBuf src,
int srcIndex,
int length) |
ByteBuf |
EmptyByteBuf.writeBytes(ByteBuf src,
int srcIndex,
int length) |
ByteBuf |
WrappedByteBuf.writeBytes(ByteBuf src,
int srcIndex,
int length) |
static int |
ByteBufUtil.writeUtf8(ByteBuf buf,
CharSequence seq)
|
Modifier and Type | Method and Description |
---|---|
CompositeByteBuf |
CompositeByteBuf.addComponents(int cIndex,
Iterable<ByteBuf> buffers)
Add the given
ByteBuf s on the specific index
Be aware that this method does not increase the writerIndex of the CompositeByteBuf . |
CompositeByteBuf |
CompositeByteBuf.addComponents(Iterable<ByteBuf> buffers)
Add the given
ByteBuf s. |
Constructor and Description |
---|
ByteBufInputStream(ByteBuf buffer)
Creates a new stream which reads data from the specified
buffer
starting at the current readerIndex and ending at the current
writerIndex . |
ByteBufInputStream(ByteBuf buffer,
int length)
Creates a new stream which reads data from the specified
buffer
starting at the current readerIndex and ending at
readerIndex + length . |
ByteBufOutputStream(ByteBuf buffer)
Creates a new stream which writes data to the specified
buffer . |
CompositeByteBuf(ByteBufAllocator alloc,
boolean direct,
int maxNumComponents,
ByteBuf... buffers) |
DefaultByteBufHolder(ByteBuf data) |
DuplicatedByteBuf(ByteBuf buffer) |
ReadOnlyByteBuf(ByteBuf buffer) |
SlicedByteBuf(ByteBuf buffer,
int index,
int length) |
SwappedByteBuf(ByteBuf buf) |
WrappedByteBuf(ByteBuf buf) |
Constructor and Description |
---|
CompositeByteBuf(ByteBufAllocator alloc,
boolean direct,
int maxNumComponents,
Iterable<ByteBuf> buffers) |
Modifier and Type | Method and Description |
---|---|
ByteBuf |
RecvByteBufAllocator.Handle.allocate(ByteBufAllocator alloc)
Creates a new receive buffer whose capacity is probably large enough to read all inbound data and small
enough not to waste its space.
|
Modifier and Type | Method and Description |
---|---|
protected ByteBuf |
AbstractNioChannel.newDirectBuffer(ByteBuf buf)
Returns an off-heap copy of the specified
ByteBuf , and releases the original one. |
protected ByteBuf |
AbstractNioChannel.newDirectBuffer(ReferenceCounted holder,
ByteBuf buf)
Returns an off-heap copy of the specified
ByteBuf , and releases the specified holder. |
Modifier and Type | Method and Description |
---|---|
protected abstract int |
AbstractNioByteChannel.doReadBytes(ByteBuf buf)
Read bytes into the given
ByteBuf and return the amount. |
protected abstract int |
AbstractNioByteChannel.doWriteBytes(ByteBuf buf)
|
protected ByteBuf |
AbstractNioChannel.newDirectBuffer(ByteBuf buf)
Returns an off-heap copy of the specified
ByteBuf , and releases the original one. |
protected ByteBuf |
AbstractNioChannel.newDirectBuffer(ReferenceCounted holder,
ByteBuf buf)
Returns an off-heap copy of the specified
ByteBuf , and releases the specified holder. |
Modifier and Type | Method and Description |
---|---|
protected int |
OioByteStreamChannel.doReadBytes(ByteBuf buf) |
protected abstract int |
AbstractOioByteChannel.doReadBytes(ByteBuf buf)
Read bytes from the underlying Socket.
|
protected void |
OioByteStreamChannel.doWriteBytes(ByteBuf buf) |
protected abstract void |
AbstractOioByteChannel.doWriteBytes(ByteBuf buf)
Write the data which is hold by the
ByteBuf to the underlying Socket. |
Constructor and Description |
---|
SctpMessage(int protocolIdentifier,
int streamIdentifier,
ByteBuf payloadBuffer)
Essential data that is being carried within SCTP Data Chunk
|
SctpMessage(com.sun.nio.sctp.MessageInfo msgInfo,
ByteBuf payloadBuffer)
Essential data that is being carried within SCTP Data Chunk
|
Constructor and Description |
---|
DatagramPacket(ByteBuf data,
InetSocketAddress recipient)
Create a new instance with the specified packet
data and recipient address. |
DatagramPacket(ByteBuf data,
InetSocketAddress recipient,
InetSocketAddress sender)
Create a new instance with the specified packet
data , recipient address, and sender
address. |
Modifier and Type | Method and Description |
---|---|
protected int |
NioSocketChannel.doReadBytes(ByteBuf byteBuf) |
protected int |
NioSocketChannel.doWriteBytes(ByteBuf buf) |
Modifier and Type | Method and Description |
---|---|
protected int |
OioSocketChannel.doReadBytes(ByteBuf buf) |
Constructor and Description |
---|
UdtMessage(ByteBuf data) |
Modifier and Type | Method and Description |
---|---|
protected int |
NioUdtByteConnectorChannel.doReadBytes(ByteBuf byteBuf) |
protected int |
NioUdtByteConnectorChannel.doWriteBytes(ByteBuf byteBuf) |
Modifier and Type | Method and Description |
---|---|
protected ByteBuf |
MessageToByteEncoder.allocateBuffer(ChannelHandlerContext ctx,
I msg,
boolean preferDirect)
Allocate a
ByteBuf which will be used as argument of #encode(ChannelHandlerContext, I, ByteBuf) . |
ByteBuf |
ByteToMessageDecoder.Cumulator.cumulate(ByteBufAllocator alloc,
ByteBuf cumulation,
ByteBuf in)
|
protected ByteBuf |
LengthFieldBasedFrameDecoder.extractFrame(ChannelHandlerContext ctx,
ByteBuf buffer,
int index,
int length)
Extract the sub-region of the specified buffer.
|
protected ByteBuf |
ByteToMessageDecoder.internalBuffer()
Returns the internal cumulative buffer of this decoder.
|
static ByteBuf[] |
Delimiters.lineDelimiter()
Returns
CR ('\r') and LF ('\n') delimiters, which could
be used for text-based line protocols. |
static ByteBuf[] |
Delimiters.nulDelimiter()
Returns a
NUL (0x00) delimiter, which could be used for
Flash XML socket or any similar protocols. |
Modifier and Type | Method and Description |
---|---|
protected abstract O |
MessageAggregator.beginAggregation(S start,
ByteBuf content)
Creates a new aggregated message from the specified start message and the specified content.
|
protected void |
ReplayingDecoder.callDecode(ChannelHandlerContext ctx,
ByteBuf in,
List<Object> out) |
protected void |
ByteToMessageDecoder.callDecode(ChannelHandlerContext ctx,
ByteBuf in,
List<Object> out)
Called once data should be decoded from the given
ByteBuf . |
void |
AsciiString.copy(int srcIdx,
ByteBuf dst,
int length)
Copies the content of this string to a
ByteBuf using writeBytes(byte[], int, int) . |
void |
AsciiString.copy(int srcIdx,
ByteBuf dst,
int dstIdx,
int length)
Copies the content of this string to a
ByteBuf using writeBytes(byte[], int, int) . |
ByteBuf |
ByteToMessageDecoder.Cumulator.cumulate(ByteBufAllocator alloc,
ByteBuf cumulation,
ByteBuf in)
|
protected Object |
FixedLengthFrameDecoder.decode(ChannelHandlerContext ctx,
ByteBuf in)
Create a frame out of the
ByteBuf and return it. |
protected Object |
LineBasedFrameDecoder.decode(ChannelHandlerContext ctx,
ByteBuf buffer)
Create a frame out of the
ByteBuf and return it. |
protected Object |
DelimiterBasedFrameDecoder.decode(ChannelHandlerContext ctx,
ByteBuf buffer)
Create a frame out of the
ByteBuf and return it. |
protected Object |
LengthFieldBasedFrameDecoder.decode(ChannelHandlerContext ctx,
ByteBuf in)
Create a frame out of the
ByteBuf and return it. |
protected void |
FixedLengthFrameDecoder.decode(ChannelHandlerContext ctx,
ByteBuf in,
List<Object> out) |
protected abstract void |
ByteToMessageCodec.decode(ChannelHandlerContext ctx,
ByteBuf in,
List<Object> out) |
protected void |
LineBasedFrameDecoder.decode(ChannelHandlerContext ctx,
ByteBuf in,
List<Object> out) |
protected void |
DelimiterBasedFrameDecoder.decode(ChannelHandlerContext ctx,
ByteBuf in,
List<Object> out) |
protected abstract void |
ByteToMessageDecoder.decode(ChannelHandlerContext ctx,
ByteBuf in,
List<Object> out)
Decode the from one
ByteBuf to an other. |
protected void |
LengthFieldBasedFrameDecoder.decode(ChannelHandlerContext ctx,
ByteBuf in,
List<Object> out) |
protected void |
ByteToMessageCodec.decodeLast(ChannelHandlerContext ctx,
ByteBuf in,
List<Object> out) |
protected void |
ByteToMessageDecoder.decodeLast(ChannelHandlerContext ctx,
ByteBuf in,
List<Object> out)
Is called one last time when the
ChannelHandlerContext goes in-active. |
protected void |
LengthFieldPrepender.encode(ChannelHandlerContext ctx,
ByteBuf msg,
List<Object> out) |
protected abstract void |
ByteToMessageCodec.encode(ChannelHandlerContext ctx,
I msg,
ByteBuf out) |
protected abstract void |
MessageToByteEncoder.encode(ChannelHandlerContext ctx,
I msg,
ByteBuf out)
Encode a message into a
ByteBuf . |
protected ByteBuf |
LengthFieldBasedFrameDecoder.extractFrame(ChannelHandlerContext ctx,
ByteBuf buffer,
int index,
int length)
Extract the sub-region of the specified buffer.
|
protected long |
LengthFieldBasedFrameDecoder.getUnadjustedFrameLength(ByteBuf buf,
int offset,
int length,
ByteOrder order)
Decodes the specified region of the buffer into an unadjusted frame length.
|
Constructor and Description |
---|
AsciiHeadersEncoder(ByteBuf buf) |
AsciiHeadersEncoder(ByteBuf buf,
AsciiHeadersEncoder.SeparatorType separatorType,
AsciiHeadersEncoder.NewlineType newlineType) |
DelimiterBasedFrameDecoder(int maxFrameLength,
boolean stripDelimiter,
boolean failFast,
ByteBuf... delimiters)
Creates a new instance.
|
DelimiterBasedFrameDecoder(int maxFrameLength,
boolean stripDelimiter,
boolean failFast,
ByteBuf delimiter)
Creates a new instance.
|
DelimiterBasedFrameDecoder(int maxFrameLength,
boolean stripDelimiter,
ByteBuf... delimiters)
Creates a new instance.
|
DelimiterBasedFrameDecoder(int maxFrameLength,
boolean stripDelimiter,
ByteBuf delimiter)
Creates a new instance.
|
DelimiterBasedFrameDecoder(int maxFrameLength,
ByteBuf... delimiters)
Creates a new instance.
|
DelimiterBasedFrameDecoder(int maxFrameLength,
ByteBuf delimiter)
Creates a new instance.
|
Modifier and Type | Method and Description |
---|---|
static ByteBuf |
Base64.decode(ByteBuf src) |
static ByteBuf |
Base64.decode(ByteBuf src,
Base64Dialect dialect) |
static ByteBuf |
Base64.decode(ByteBuf src,
int off,
int len) |
static ByteBuf |
Base64.decode(ByteBuf src,
int off,
int len,
Base64Dialect dialect) |
static ByteBuf |
Base64.encode(ByteBuf src) |
static ByteBuf |
Base64.encode(ByteBuf src,
Base64Dialect dialect) |
static ByteBuf |
Base64.encode(ByteBuf src,
boolean breakLines) |
static ByteBuf |
Base64.encode(ByteBuf src,
boolean breakLines,
Base64Dialect dialect) |
static ByteBuf |
Base64.encode(ByteBuf src,
int off,
int len) |
static ByteBuf |
Base64.encode(ByteBuf src,
int off,
int len,
Base64Dialect dialect) |
static ByteBuf |
Base64.encode(ByteBuf src,
int off,
int len,
boolean breakLines) |
static ByteBuf |
Base64.encode(ByteBuf src,
int off,
int len,
boolean breakLines,
Base64Dialect dialect) |
Modifier and Type | Method and Description |
---|---|
static ByteBuf |
Base64.decode(ByteBuf src) |
static ByteBuf |
Base64.decode(ByteBuf src,
Base64Dialect dialect) |
static ByteBuf |
Base64.decode(ByteBuf src,
int off,
int len) |
static ByteBuf |
Base64.decode(ByteBuf src,
int off,
int len,
Base64Dialect dialect) |
protected void |
Base64Decoder.decode(ChannelHandlerContext ctx,
ByteBuf msg,
List<Object> out) |
static ByteBuf |
Base64.encode(ByteBuf src) |
static ByteBuf |
Base64.encode(ByteBuf src,
Base64Dialect dialect) |
static ByteBuf |
Base64.encode(ByteBuf src,
boolean breakLines) |
static ByteBuf |
Base64.encode(ByteBuf src,
boolean breakLines,
Base64Dialect dialect) |
static ByteBuf |
Base64.encode(ByteBuf src,
int off,
int len) |
static ByteBuf |
Base64.encode(ByteBuf src,
int off,
int len,
Base64Dialect dialect) |
static ByteBuf |
Base64.encode(ByteBuf src,
int off,
int len,
boolean breakLines) |
static ByteBuf |
Base64.encode(ByteBuf src,
int off,
int len,
boolean breakLines,
Base64Dialect dialect) |
protected void |
Base64Encoder.encode(ChannelHandlerContext ctx,
ByteBuf msg,
List<Object> out) |
Modifier and Type | Method and Description |
---|---|
protected void |
ByteArrayDecoder.decode(ChannelHandlerContext ctx,
ByteBuf msg,
List<Object> out) |
Modifier and Type | Method and Description |
---|---|
protected ByteBuf |
LzmaFrameEncoder.allocateBuffer(ChannelHandlerContext ctx,
ByteBuf in,
boolean preferDirect) |
protected ByteBuf |
JdkZlibEncoder.allocateBuffer(ChannelHandlerContext ctx,
ByteBuf msg,
boolean preferDirect) |
Modifier and Type | Method and Description |
---|---|
protected ByteBuf |
LzmaFrameEncoder.allocateBuffer(ChannelHandlerContext ctx,
ByteBuf in,
boolean preferDirect) |
protected ByteBuf |
JdkZlibEncoder.allocateBuffer(ChannelHandlerContext ctx,
ByteBuf msg,
boolean preferDirect) |
protected void |
Lz4FrameDecoder.decode(ChannelHandlerContext ctx,
ByteBuf in,
List<Object> out) |
protected void |
JZlibDecoder.decode(ChannelHandlerContext ctx,
ByteBuf in,
List<Object> out) |
protected void |
LzfDecoder.decode(ChannelHandlerContext ctx,
ByteBuf in,
List<Object> out) |
protected void |
Bzip2Decoder.decode(ChannelHandlerContext ctx,
ByteBuf in,
List<Object> out) |
protected void |
SnappyFrameDecoder.decode(ChannelHandlerContext ctx,
ByteBuf in,
List<Object> out) |
protected void |
FastLzFrameDecoder.decode(ChannelHandlerContext ctx,
ByteBuf in,
List<Object> out) |
protected void |
JdkZlibDecoder.decode(ChannelHandlerContext ctx,
ByteBuf in,
List<Object> out) |
protected void |
Lz4FrameEncoder.encode(ChannelHandlerContext ctx,
ByteBuf in,
ByteBuf out) |
protected void |
Bzip2Encoder.encode(ChannelHandlerContext ctx,
ByteBuf in,
ByteBuf out) |
protected void |
LzmaFrameEncoder.encode(ChannelHandlerContext ctx,
ByteBuf in,
ByteBuf out) |
protected void |
LzfEncoder.encode(ChannelHandlerContext ctx,
ByteBuf in,
ByteBuf out) |
protected void |
JZlibEncoder.encode(ChannelHandlerContext ctx,
ByteBuf in,
ByteBuf out) |
protected void |
JdkZlibEncoder.encode(ChannelHandlerContext ctx,
ByteBuf uncompressed,
ByteBuf out) |
protected void |
FastLzFrameEncoder.encode(ChannelHandlerContext ctx,
ByteBuf in,
ByteBuf out) |
protected void |
SnappyFrameEncoder.encode(ChannelHandlerContext ctx,
ByteBuf in,
ByteBuf out) |
Modifier and Type | Method and Description |
---|---|
ByteBuf |
DnsResource.content()
Returns the data contained in this resource record.
|
Constructor and Description |
---|
DnsResource(String name,
DnsType type,
DnsClass aClass,
long ttl,
ByteBuf content)
Constructs a resource record.
|
Modifier and Type | Method and Description |
---|---|
protected void |
HAProxyMessageDecoder.decode(ChannelHandlerContext ctx,
ByteBuf in,
List<Object> out) |
Modifier and Type | Method and Description |
---|---|
ByteBuf |
DefaultFullHttpResponse.content() |
ByteBuf |
DefaultHttpContent.content() |
ByteBuf |
DefaultFullHttpRequest.content() |
Modifier and Type | Method and Description |
---|---|
protected FullHttpMessage |
HttpObjectAggregator.beginAggregation(HttpMessage start,
ByteBuf content) |
FullHttpMessage |
FullHttpMessage.copy(ByteBuf newContent)
Create a copy of this
FullHttpMessage with alternative content. |
FullHttpRequest |
FullHttpRequest.copy(ByteBuf newContent) |
FullHttpResponse |
DefaultFullHttpResponse.copy(ByteBuf newContent) |
FullHttpResponse |
FullHttpResponse.copy(ByteBuf newContent) |
FullHttpRequest |
DefaultFullHttpRequest.copy(ByteBuf newContent) |
protected void |
HttpObjectDecoder.decode(ChannelHandlerContext ctx,
ByteBuf buffer,
List<Object> out) |
protected void |
HttpObjectDecoder.decodeLast(ChannelHandlerContext ctx,
ByteBuf in,
List<Object> out) |
protected void |
HttpObjectEncoder.encodeHeaders(HttpHeaders headers,
ByteBuf buf)
Encode the
HttpHeaders into a ByteBuf . |
protected abstract void |
HttpObjectEncoder.encodeInitialLine(ByteBuf buf,
H message) |
protected void |
HttpRequestEncoder.encodeInitialLine(ByteBuf buf,
HttpRequest request) |
protected void |
HttpResponseEncoder.encodeInitialLine(ByteBuf buf,
HttpResponse response) |
Constructor and Description |
---|
DefaultFullHttpRequest(HttpVersion httpVersion,
HttpMethod method,
String uri,
ByteBuf content) |
DefaultFullHttpRequest(HttpVersion httpVersion,
HttpMethod method,
String uri,
ByteBuf content,
boolean validateHeaders) |
DefaultFullHttpResponse(HttpVersion version,
HttpResponseStatus status,
ByteBuf content) |
DefaultFullHttpResponse(HttpVersion version,
HttpResponseStatus status,
ByteBuf content,
boolean singleFieldHeaders) |
DefaultFullHttpResponse(HttpVersion version,
HttpResponseStatus status,
ByteBuf content,
boolean validateHeaders,
boolean singleFieldHeaders) |
DefaultHttpContent(ByteBuf content)
Creates a new instance with the specified chunk content.
|
DefaultLastHttpContent(ByteBuf content) |
DefaultLastHttpContent(ByteBuf content,
boolean validateHeaders) |
Constructor and Description |
---|
HttpChunkedInput(ChunkedInput<ByteBuf> input)
Creates a new instance using the specified input.
|
HttpChunkedInput(ChunkedInput<ByteBuf> input,
LastHttpContent lastHttpContent)
Creates a new instance using the specified input.
|
Modifier and Type | Method and Description |
---|---|
ByteBuf |
AbstractHttpData.content() |
ByteBuf |
MixedFileUpload.content() |
ByteBuf |
MixedAttribute.content() |
ByteBuf |
HttpData.getByteBuf()
Returns the content of the file item as a ByteBuf
|
ByteBuf |
MixedFileUpload.getByteBuf() |
ByteBuf |
MixedAttribute.getByteBuf() |
ByteBuf |
AbstractDiskHttpData.getByteBuf() |
ByteBuf |
AbstractMemoryHttpData.getByteBuf()
Utility to go from a In Memory FileUpload
to a Disk (or another implementation) FileUpload
|
ByteBuf |
HttpData.getChunk(int length)
Returns a ChannelBuffer for the content from the current position with at
most length read bytes, increasing the current position of the Bytes
read.
|
ByteBuf |
MixedFileUpload.getChunk(int length) |
ByteBuf |
MixedAttribute.getChunk(int length) |
ByteBuf |
AbstractDiskHttpData.getChunk(int length) |
ByteBuf |
AbstractMemoryHttpData.getChunk(int length) |
Modifier and Type | Method and Description |
---|---|
void |
DiskAttribute.addContent(ByteBuf buffer,
boolean last) |
void |
HttpData.addContent(ByteBuf buffer,
boolean last)
Add the content from the ChannelBuffer
|
void |
MixedFileUpload.addContent(ByteBuf buffer,
boolean last) |
void |
MixedAttribute.addContent(ByteBuf buffer,
boolean last) |
void |
MemoryAttribute.addContent(ByteBuf buffer,
boolean last) |
void |
AbstractDiskHttpData.addContent(ByteBuf buffer,
boolean last) |
void |
AbstractMemoryHttpData.addContent(ByteBuf buffer,
boolean last) |
void |
HttpData.setContent(ByteBuf buffer)
Set the content from the ChannelBuffer (erase any previous data)
|
void |
MixedFileUpload.setContent(ByteBuf buffer) |
void |
MixedAttribute.setContent(ByteBuf buffer) |
void |
AbstractDiskHttpData.setContent(ByteBuf buffer) |
void |
AbstractMemoryHttpData.setContent(ByteBuf buffer) |
Modifier and Type | Method and Description |
---|---|
protected WebSocketFrame |
WebSocketFrameAggregator.beginAggregation(WebSocketFrame start,
ByteBuf content) |
protected void |
WebSocket08FrameDecoder.checkCloseFrameBody(ChannelHandlerContext ctx,
ByteBuf buffer) |
protected void |
WebSocket00FrameDecoder.decode(ChannelHandlerContext ctx,
ByteBuf in,
List<Object> out) |
protected void |
WebSocket08FrameDecoder.decode(ChannelHandlerContext ctx,
ByteBuf in,
List<Object> out) |
Constructor and Description |
---|
BinaryWebSocketFrame(boolean finalFragment,
int rsv,
ByteBuf binaryData)
Creates a new binary frame with the specified binary data and the final fragment flag.
|
BinaryWebSocketFrame(ByteBuf binaryData)
Creates a new binary frame with the specified binary data.
|
CloseWebSocketFrame(boolean finalFragment,
int rsv,
ByteBuf binaryData)
Creates a new close frame
|
ContinuationWebSocketFrame(boolean finalFragment,
int rsv,
ByteBuf binaryData)
Creates a new continuation frame with the specified binary data
|
ContinuationWebSocketFrame(ByteBuf binaryData)
Creates a new continuation frame with the specified binary data.
|
PingWebSocketFrame(boolean finalFragment,
int rsv,
ByteBuf binaryData)
Creates a new ping frame with the specified binary data
|
PingWebSocketFrame(ByteBuf binaryData)
Creates a new ping frame with the specified binary data.
|
PongWebSocketFrame(boolean finalFragment,
int rsv,
ByteBuf binaryData)
Creates a new pong frame with the specified binary data
|
PongWebSocketFrame(ByteBuf binaryData)
Creates a new pong frame with the specified binary data.
|
TextWebSocketFrame(boolean finalFragment,
int rsv,
ByteBuf binaryData)
Creates a new text frame with the specified binary data.
|
TextWebSocketFrame(ByteBuf binaryData)
Creates a new text frame with the specified binary data.
|
WebSocketFrame(boolean finalFragment,
int rsv,
ByteBuf binaryData) |
WebSocketFrame(ByteBuf binaryData) |
Modifier and Type | Method and Description |
---|---|
static ByteBuf |
Http2CodecUtil.connectionPrefaceBuf()
Returns a buffer containing the the
Http2CodecUtil.CONNECTION_PREFACE . |
static ByteBuf |
Http2CodecUtil.emptyPingBuf()
Returns a buffer filled with all zeros that is the appropriate length for a PING frame.
|
static ByteBuf |
Http2CodecUtil.toByteBuf(ChannelHandlerContext ctx,
Throwable cause)
Creates a buffer containing the error message from the given exception.
|
Modifier and Type | Method and Description |
---|---|
protected void |
Http2OrHttpChooser.decode(ChannelHandlerContext ctx,
ByteBuf in,
List<Object> out) |
protected void |
Http2ConnectionHandler.decode(ChannelHandlerContext ctx,
ByteBuf in,
List<Object> out) |
void |
Http2ConnectionDecoder.decodeFrame(ChannelHandlerContext ctx,
ByteBuf in,
List<Object> out)
Called by the
Http2ConnectionHandler to decode the next frame from the input buffer. |
void |
DefaultHttp2ConnectionDecoder.decodeFrame(ChannelHandlerContext ctx,
ByteBuf in,
List<Object> out) |
Http2Headers |
Http2HeadersDecoder.decodeHeaders(ByteBuf headerBlock)
Decodes the given headers block and returns the headers.
|
Http2Headers |
DefaultHttp2HeadersDecoder.decodeHeaders(ByteBuf headerBlock) |
void |
Http2HeadersEncoder.encodeHeaders(Http2Headers headers,
ByteBuf buffer)
Encodes the given headers and writes the output headers block to the given output buffer.
|
void |
DefaultHttp2HeadersEncoder.encodeHeaders(Http2Headers headers,
ByteBuf buffer) |
void |
Http2FrameLogger.logData(Http2FrameLogger.Direction direction,
int streamId,
ByteBuf data,
int padding,
boolean endStream) |
void |
Http2FrameLogger.logGoAway(Http2FrameLogger.Direction direction,
int lastStreamId,
long errorCode,
ByteBuf debugData) |
void |
Http2FrameLogger.logPing(Http2FrameLogger.Direction direction,
ByteBuf data) |
void |
Http2FrameLogger.logPingAck(Http2FrameLogger.Direction direction,
ByteBuf data) |
void |
Http2FrameLogger.logUnknownFrame(Http2FrameLogger.Direction direction,
byte frameType,
int streamId,
Http2Flags flags,
ByteBuf data) |
int |
Http2FrameAdapter.onDataRead(ChannelHandlerContext ctx,
int streamId,
ByteBuf data,
int padding,
boolean endOfStream) |
int |
Http2EventAdapter.onDataRead(ChannelHandlerContext ctx,
int streamId,
ByteBuf data,
int padding,
boolean endOfStream) |
int |
InboundHttp2ToHttpAdapter.onDataRead(ChannelHandlerContext ctx,
int streamId,
ByteBuf data,
int padding,
boolean endOfStream) |
int |
Http2FrameListener.onDataRead(ChannelHandlerContext ctx,
int streamId,
ByteBuf data,
int padding,
boolean endOfStream)
Handles an inbound
DATA frame. |
int |
DelegatingDecompressorFrameListener.onDataRead(ChannelHandlerContext ctx,
int streamId,
ByteBuf data,
int padding,
boolean endOfStream) |
int |
Http2FrameListenerDecorator.onDataRead(ChannelHandlerContext ctx,
int streamId,
ByteBuf data,
int padding,
boolean endOfStream) |
void |
Http2FrameAdapter.onGoAwayRead(ChannelHandlerContext ctx,
int lastStreamId,
long errorCode,
ByteBuf debugData) |
void |
Http2EventAdapter.onGoAwayRead(ChannelHandlerContext ctx,
int lastStreamId,
long errorCode,
ByteBuf debugData) |
void |
Http2FrameListener.onGoAwayRead(ChannelHandlerContext ctx,
int lastStreamId,
long errorCode,
ByteBuf debugData)
Handles an inbound GO_AWAY frame.
|
void |
Http2FrameListenerDecorator.onGoAwayRead(ChannelHandlerContext ctx,
int lastStreamId,
long errorCode,
ByteBuf debugData) |
void |
Http2FrameAdapter.onPingAckRead(ChannelHandlerContext ctx,
ByteBuf data) |
void |
Http2EventAdapter.onPingAckRead(ChannelHandlerContext ctx,
ByteBuf data) |
void |
Http2FrameListener.onPingAckRead(ChannelHandlerContext ctx,
ByteBuf data)
Handles an inbound PING acknowledgment.
|
void |
Http2FrameListenerDecorator.onPingAckRead(ChannelHandlerContext ctx,
ByteBuf data) |
void |
Http2FrameAdapter.onPingRead(ChannelHandlerContext ctx,
ByteBuf data) |
void |
Http2EventAdapter.onPingRead(ChannelHandlerContext ctx,
ByteBuf data) |
void |
Http2FrameListener.onPingRead(ChannelHandlerContext ctx,
ByteBuf data)
Handles an inbound PING frame.
|
void |
Http2FrameListenerDecorator.onPingRead(ChannelHandlerContext ctx,
ByteBuf data) |
void |
Http2FrameAdapter.onUnknownFrame(ChannelHandlerContext ctx,
byte frameType,
int streamId,
Http2Flags flags,
ByteBuf payload) |
void |
Http2EventAdapter.onUnknownFrame(ChannelHandlerContext ctx,
byte frameType,
int streamId,
Http2Flags flags,
ByteBuf payload) |
void |
Http2FrameListener.onUnknownFrame(ChannelHandlerContext ctx,
byte frameType,
int streamId,
Http2Flags flags,
ByteBuf payload)
Handler for a frame not defined by the HTTP/2 spec.
|
void |
Http2FrameListenerDecorator.onUnknownFrame(ChannelHandlerContext ctx,
byte frameType,
int streamId,
Http2Flags flags,
ByteBuf payload) |
void |
DefaultHttp2FrameReader.readFrame(ChannelHandlerContext ctx,
ByteBuf input,
Http2FrameListener listener) |
void |
Http2FrameReader.readFrame(ChannelHandlerContext ctx,
ByteBuf input,
Http2FrameListener listener)
Attempts to read the next frame from the input buffer.
|
void |
Http2InboundFrameLogger.readFrame(ChannelHandlerContext ctx,
ByteBuf input,
Http2FrameListener listener) |
static int |
Http2CodecUtil.readUnsignedInt(ByteBuf buf)
Reads a big-endian (31-bit) integer from the buffer.
|
void |
Http2LocalFlowController.receiveFlowControlledFrame(ChannelHandlerContext ctx,
Http2Stream stream,
ByteBuf data,
int padding,
boolean endOfStream)
Receives an inbound
DATA frame from the remote endpoint and applies flow control
policies to it for both the stream as well as the connection. |
void |
DefaultHttp2LocalFlowController.receiveFlowControlledFrame(ChannelHandlerContext ctx,
Http2Stream stream,
ByteBuf data,
int padding,
boolean endOfStream) |
ChannelFuture |
Http2DataWriter.writeData(ChannelHandlerContext ctx,
int streamId,
ByteBuf data,
int padding,
boolean endStream,
ChannelPromise promise)
Writes a
DATA frame to the remote endpoint. |
ChannelFuture |
DefaultHttp2ConnectionEncoder.writeData(ChannelHandlerContext ctx,
int streamId,
ByteBuf data,
int padding,
boolean endOfStream,
ChannelPromise promise) |
ChannelFuture |
Http2OutboundFrameLogger.writeData(ChannelHandlerContext ctx,
int streamId,
ByteBuf data,
int padding,
boolean endStream,
ChannelPromise promise) |
ChannelFuture |
DefaultHttp2FrameWriter.writeData(ChannelHandlerContext ctx,
int streamId,
ByteBuf data,
int padding,
boolean endStream,
ChannelPromise promise) |
ChannelFuture |
CompressorHttp2ConnectionEncoder.writeData(ChannelHandlerContext ctx,
int streamId,
ByteBuf data,
int padding,
boolean endOfStream,
ChannelPromise promise) |
ChannelFuture |
DefaultHttp2ConnectionEncoder.writeFrame(ChannelHandlerContext ctx,
byte frameType,
int streamId,
Http2Flags flags,
ByteBuf payload,
ChannelPromise promise) |
ChannelFuture |
Http2OutboundFrameLogger.writeFrame(ChannelHandlerContext ctx,
byte frameType,
int streamId,
Http2Flags flags,
ByteBuf payload,
ChannelPromise promise) |
ChannelFuture |
DefaultHttp2FrameWriter.writeFrame(ChannelHandlerContext ctx,
byte frameType,
int streamId,
Http2Flags flags,
ByteBuf payload,
ChannelPromise promise) |
ChannelFuture |
Http2FrameWriter.writeFrame(ChannelHandlerContext ctx,
byte frameType,
int streamId,
Http2Flags flags,
ByteBuf payload,
ChannelPromise promise)
Generic write method for any HTTP/2 frame.
|
ChannelFuture |
Http2ConnectionEncoder.writeFrame(ChannelHandlerContext ctx,
byte frameType,
int streamId,
Http2Flags flags,
ByteBuf payload,
ChannelPromise promise)
Writes the given data to the internal
Http2FrameWriter without performing any
state checks on the connection/stream. |
static void |
Http2CodecUtil.writeFrameHeader(ByteBuf out,
int payloadLength,
byte type,
Http2Flags flags,
int streamId)
Writes an HTTP/2 frame header to the output buffer.
|
ChannelFuture |
DefaultHttp2ConnectionEncoder.writeGoAway(ChannelHandlerContext ctx,
int lastStreamId,
long errorCode,
ByteBuf debugData,
ChannelPromise promise) |
ChannelFuture |
Http2OutboundFrameLogger.writeGoAway(ChannelHandlerContext ctx,
int lastStreamId,
long errorCode,
ByteBuf debugData,
ChannelPromise promise) |
ChannelFuture |
Http2LifecycleManager.writeGoAway(ChannelHandlerContext ctx,
int lastStreamId,
long errorCode,
ByteBuf debugData,
ChannelPromise promise)
Sends a
GO_AWAY frame to the remote endpoint and updates the connection state
appropriately. |
ChannelFuture |
DefaultHttp2FrameWriter.writeGoAway(ChannelHandlerContext ctx,
int lastStreamId,
long errorCode,
ByteBuf debugData,
ChannelPromise promise) |
ChannelFuture |
Http2FrameWriter.writeGoAway(ChannelHandlerContext ctx,
int lastStreamId,
long errorCode,
ByteBuf debugData,
ChannelPromise promise)
Writes a GO_AWAY frame to the remote endpoint.
|
ChannelFuture |
Http2ConnectionHandler.writeGoAway(ChannelHandlerContext ctx,
int lastStreamId,
long errorCode,
ByteBuf debugData,
ChannelPromise promise)
Sends a
GO_AWAY frame to the remote endpoint and updates the connection state appropriately. |
ChannelFuture |
DefaultHttp2ConnectionEncoder.writePing(ChannelHandlerContext ctx,
boolean ack,
ByteBuf data,
ChannelPromise promise) |
ChannelFuture |
Http2OutboundFrameLogger.writePing(ChannelHandlerContext ctx,
boolean ack,
ByteBuf data,
ChannelPromise promise) |
ChannelFuture |
DefaultHttp2FrameWriter.writePing(ChannelHandlerContext ctx,
boolean ack,
ByteBuf data,
ChannelPromise promise) |
ChannelFuture |
Http2FrameWriter.writePing(ChannelHandlerContext ctx,
boolean ack,
ByteBuf data,
ChannelPromise promise)
Writes a PING frame to the remote endpoint.
|
static void |
Http2CodecUtil.writeUnsignedInt(long value,
ByteBuf out)
Writes a big-endian (32-bit) unsigned integer to the buffer.
|
static void |
Http2CodecUtil.writeUnsignedShort(int value,
ByteBuf out)
Writes a big-endian (16-bit) unsigned integer to the buffer.
|
Modifier and Type | Method and Description |
---|---|
protected ByteBuf |
JsonObjectDecoder.extractObject(ChannelHandlerContext ctx,
ByteBuf buffer,
int index,
int length)
Override this method if you want to filter the json objects/arrays that get passed through the pipeline.
|
Modifier and Type | Method and Description |
---|---|
protected void |
JsonObjectDecoder.decode(ChannelHandlerContext ctx,
ByteBuf in,
List<Object> out) |
protected ByteBuf |
JsonObjectDecoder.extractObject(ChannelHandlerContext ctx,
ByteBuf buffer,
int index,
int length)
Override this method if you want to filter the json objects/arrays that get passed through the pipeline.
|
Modifier and Type | Method and Description |
---|---|
protected ByteBuf |
MarshallingDecoder.extractFrame(ChannelHandlerContext ctx,
ByteBuf buffer,
int index,
int length) |
Modifier and Type | Method and Description |
---|---|
protected Object |
MarshallingDecoder.decode(ChannelHandlerContext ctx,
ByteBuf in) |
protected void |
CompatibleMarshallingDecoder.decode(ChannelHandlerContext ctx,
ByteBuf buffer,
List<Object> out) |
protected void |
CompatibleMarshallingDecoder.decodeLast(ChannelHandlerContext ctx,
ByteBuf buffer,
List<Object> out) |
protected void |
CompatibleMarshallingEncoder.encode(ChannelHandlerContext ctx,
Object msg,
ByteBuf out) |
protected void |
MarshallingEncoder.encode(ChannelHandlerContext ctx,
Object msg,
ByteBuf out) |
protected ByteBuf |
MarshallingDecoder.extractFrame(ChannelHandlerContext ctx,
ByteBuf buffer,
int index,
int length) |
Modifier and Type | Method and Description |
---|---|
ByteBuf |
DefaultMemcacheContent.content() |
protected abstract ByteBuf |
AbstractMemcacheObjectEncoder.encodeMessage(ChannelHandlerContext ctx,
M msg)
Take the given
MemcacheMessage and encode it into a writable ByteBuf . |
Constructor and Description |
---|
DefaultLastMemcacheContent(ByteBuf content) |
DefaultMemcacheContent(ByteBuf content)
Creates a new instance with the specified content.
|
Modifier and Type | Method and Description |
---|---|
ByteBuf |
DefaultFullBinaryMemcacheRequest.content() |
ByteBuf |
DefaultFullBinaryMemcacheResponse.content() |
protected ByteBuf |
AbstractBinaryMemcacheEncoder.encodeMessage(ChannelHandlerContext ctx,
M msg) |
ByteBuf |
BinaryMemcacheMessage.extras()
Returns a
ByteBuf representation of the optional extras. |
ByteBuf |
AbstractBinaryMemcacheMessage.extras() |
Modifier and Type | Method and Description |
---|---|
protected FullMemcacheMessage |
BinaryMemcacheObjectAggregator.beginAggregation(BinaryMemcacheMessage start,
ByteBuf content) |
protected void |
AbstractBinaryMemcacheDecoder.decode(ChannelHandlerContext ctx,
ByteBuf in,
List<Object> out) |
protected abstract M |
AbstractBinaryMemcacheDecoder.decodeHeader(ByteBuf in)
Decode and return the parsed
BinaryMemcacheMessage . |
protected BinaryMemcacheResponse |
BinaryMemcacheResponseDecoder.decodeHeader(ByteBuf in) |
protected BinaryMemcacheRequest |
BinaryMemcacheRequestDecoder.decodeHeader(ByteBuf in) |
protected void |
BinaryMemcacheRequestEncoder.encodeHeader(ByteBuf buf,
BinaryMemcacheRequest msg) |
protected void |
BinaryMemcacheResponseEncoder.encodeHeader(ByteBuf buf,
BinaryMemcacheResponse msg) |
protected abstract void |
AbstractBinaryMemcacheEncoder.encodeHeader(ByteBuf buf,
M msg)
Encode the header.
|
BinaryMemcacheMessage |
BinaryMemcacheMessage.setExtras(ByteBuf extras)
Sets the extras buffer on the message.
|
BinaryMemcacheMessage |
AbstractBinaryMemcacheMessage.setExtras(ByteBuf extras) |
Modifier and Type | Method and Description |
---|---|
ByteBuf |
MqttPublishMessage.content() |
ByteBuf |
MqttPublishMessage.payload() |
Modifier and Type | Method and Description |
---|---|
protected void |
MqttDecoder.decode(ChannelHandlerContext ctx,
ByteBuf buffer,
List<Object> out) |
Constructor and Description |
---|
MqttPublishMessage(MqttFixedHeader mqttFixedHeader,
MqttPublishVariableHeader variableHeader,
ByteBuf payload) |
Modifier and Type | Method and Description |
---|---|
protected void |
ProtobufVarint32FrameDecoder.decode(ChannelHandlerContext ctx,
ByteBuf in,
List<Object> out) |
protected void |
ProtobufDecoder.decode(ChannelHandlerContext ctx,
ByteBuf msg,
List<Object> out) |
protected void |
ProtobufVarint32LengthFieldPrepender.encode(ChannelHandlerContext ctx,
ByteBuf msg,
ByteBuf out) |
Modifier and Type | Method and Description |
---|---|
protected void |
RtspRequestEncoder.encodeInitialLine(ByteBuf buf,
HttpRequest request) |
protected void |
RtspResponseEncoder.encodeInitialLine(ByteBuf buf,
HttpResponse response) |
Modifier and Type | Method and Description |
---|---|
protected void |
SctpOutboundByteStreamHandler.encode(ChannelHandlerContext ctx,
ByteBuf msg,
List<Object> out) |
Modifier and Type | Method and Description |
---|---|
protected ByteBuf |
ObjectDecoder.extractFrame(ChannelHandlerContext ctx,
ByteBuf buffer,
int index,
int length) |
Modifier and Type | Method and Description |
---|---|
protected Object |
ObjectDecoder.decode(ChannelHandlerContext ctx,
ByteBuf in) |
protected void |
ObjectEncoder.encode(ChannelHandlerContext ctx,
Serializable msg,
ByteBuf out) |
protected void |
CompatibleObjectEncoder.encode(ChannelHandlerContext ctx,
Serializable msg,
ByteBuf out) |
protected ByteBuf |
ObjectDecoder.extractFrame(ChannelHandlerContext ctx,
ByteBuf buffer,
int index,
int length) |
Modifier and Type | Method and Description |
---|---|
protected void |
SocksPortUnificationServerHandler.decode(ChannelHandlerContext ctx,
ByteBuf in,
List<Object> out) |
Modifier and Type | Method and Description |
---|---|
protected void |
Socks4ServerDecoder.decode(ChannelHandlerContext ctx,
ByteBuf in,
List<Object> out) |
protected void |
Socks4ClientDecoder.decode(ChannelHandlerContext ctx,
ByteBuf in,
List<Object> out) |
protected void |
Socks4ClientEncoder.encode(ChannelHandlerContext ctx,
Socks4CommandRequest msg,
ByteBuf out) |
protected void |
Socks4ServerEncoder.encode(ChannelHandlerContext ctx,
Socks4CommandResponse msg,
ByteBuf out) |
Modifier and Type | Method and Description |
---|---|
protected void |
Socks5PasswordAuthRequestDecoder.decode(ChannelHandlerContext ctx,
ByteBuf in,
List<Object> out) |
protected void |
Socks5CommandResponseDecoder.decode(ChannelHandlerContext ctx,
ByteBuf in,
List<Object> out) |
protected void |
Socks5PasswordAuthResponseDecoder.decode(ChannelHandlerContext ctx,
ByteBuf in,
List<Object> out) |
protected void |
Socks5InitialRequestDecoder.decode(ChannelHandlerContext ctx,
ByteBuf in,
List<Object> out) |
protected void |
Socks5InitialResponseDecoder.decode(ChannelHandlerContext ctx,
ByteBuf in,
List<Object> out) |
protected void |
Socks5CommandRequestDecoder.decode(ChannelHandlerContext ctx,
ByteBuf in,
List<Object> out) |
String |
Socks5AddressDecoder.decodeAddress(Socks5AddressType addrType,
ByteBuf in)
Decodes a SOCKS5 address field into its string representation.
|
protected void |
Socks5ServerEncoder.encode(ChannelHandlerContext ctx,
Socks5Message msg,
ByteBuf out) |
protected void |
Socks5ClientEncoder.encode(ChannelHandlerContext ctx,
Socks5Message msg,
ByteBuf out) |
void |
Socks5AddressEncoder.encodeAddress(Socks5AddressType addrType,
String addrValue,
ByteBuf out)
Encodes a SOCKS5 address.
|
Modifier and Type | Method and Description |
---|---|
ByteBuf |
SpdyDataFrame.content()
Returns the data payload of this frame.
|
ByteBuf |
DefaultSpdyDataFrame.content() |
ByteBuf |
SpdyHeaderBlockRawEncoder.encode(ByteBufAllocator alloc,
SpdyHeadersFrame frame) |
ByteBuf |
SpdyFrameEncoder.encodeDataFrame(ByteBufAllocator allocator,
int streamId,
boolean last,
ByteBuf data) |
ByteBuf |
SpdyFrameEncoder.encodeGoAwayFrame(ByteBufAllocator allocator,
int lastGoodStreamId,
int statusCode) |
ByteBuf |
SpdyFrameEncoder.encodeHeadersFrame(ByteBufAllocator allocator,
int streamId,
boolean last,
ByteBuf headerBlock) |
ByteBuf |
SpdyFrameEncoder.encodePingFrame(ByteBufAllocator allocator,
int id) |
ByteBuf |
SpdyFrameEncoder.encodeRstStreamFrame(ByteBufAllocator allocator,
int streamId,
int statusCode) |
ByteBuf |
SpdyFrameEncoder.encodeSettingsFrame(ByteBufAllocator allocator,
SpdySettingsFrame spdySettingsFrame) |
ByteBuf |
SpdyFrameEncoder.encodeSynReplyFrame(ByteBufAllocator allocator,
int streamId,
boolean last,
ByteBuf headerBlock) |
ByteBuf |
SpdyFrameEncoder.encodeSynStreamFrame(ByteBufAllocator allocator,
int streamId,
int associatedToStreamId,
byte priority,
boolean last,
boolean unidirectional,
ByteBuf headerBlock) |
ByteBuf |
SpdyFrameEncoder.encodeWindowUpdateFrame(ByteBufAllocator allocator,
int streamId,
int deltaWindowSize) |
Modifier and Type | Method and Description |
---|---|
void |
SpdyFrameDecoder.decode(ByteBuf buffer) |
protected void |
SpdyFrameCodec.decode(ChannelHandlerContext ctx,
ByteBuf in,
List<Object> out) |
protected void |
SpdyOrHttpChooser.decode(ChannelHandlerContext ctx,
ByteBuf in,
List<Object> out) |
protected void |
SpdyHeaderBlockRawDecoder.decodeHeaderBlock(ByteBuf headerBlock,
SpdyHeadersFrame frame) |
ByteBuf |
SpdyFrameEncoder.encodeDataFrame(ByteBufAllocator allocator,
int streamId,
boolean last,
ByteBuf data) |
ByteBuf |
SpdyFrameEncoder.encodeHeadersFrame(ByteBufAllocator allocator,
int streamId,
boolean last,
ByteBuf headerBlock) |
ByteBuf |
SpdyFrameEncoder.encodeSynReplyFrame(ByteBufAllocator allocator,
int streamId,
boolean last,
ByteBuf headerBlock) |
ByteBuf |
SpdyFrameEncoder.encodeSynStreamFrame(ByteBufAllocator allocator,
int streamId,
int associatedToStreamId,
byte priority,
boolean last,
boolean unidirectional,
ByteBuf headerBlock) |
void |
SpdyFrameCodec.readDataFrame(int streamId,
boolean last,
ByteBuf data) |
void |
SpdyFrameDecoderDelegate.readDataFrame(int streamId,
boolean last,
ByteBuf data)
Called when a DATA frame is received.
|
void |
SpdyFrameCodec.readHeaderBlock(ByteBuf headerBlock) |
void |
SpdyFrameDecoderDelegate.readHeaderBlock(ByteBuf headerBlock)
Called when the header block within a SYN_STREAM, SYN_REPLY, or HEADERS frame is received.
|
Constructor and Description |
---|
DefaultSpdyDataFrame(int streamId,
ByteBuf data)
Creates a new instance.
|
Modifier and Type | Method and Description |
---|---|
ByteBuf |
DefaultStompFrame.content() |
ByteBuf |
DefaultStompContentSubframe.content() |
Modifier and Type | Method and Description |
---|---|
protected StompFrame |
StompSubframeAggregator.beginAggregation(StompHeadersSubframe start,
ByteBuf content) |
protected void |
StompSubframeDecoder.decode(ChannelHandlerContext ctx,
ByteBuf in,
List<Object> out) |
Constructor and Description |
---|
DefaultLastStompContentSubframe(ByteBuf content) |
DefaultStompContentSubframe(ByteBuf content) |
DefaultStompFrame(StompCommand command,
ByteBuf content) |
Modifier and Type | Method and Description |
---|---|
protected void |
StringDecoder.decode(ChannelHandlerContext ctx,
ByteBuf msg,
List<Object> out) |
Modifier and Type | Method and Description |
---|---|
protected void |
XmlFrameDecoder.decode(ChannelHandlerContext ctx,
ByteBuf in,
List<Object> out) |
Modifier and Type | Method and Description |
---|---|
protected static void |
LoggingHandler.appendHexDump(StringBuilder dump,
ByteBuf buf)
Appends the prettifies multi-line hexadecimal dump of the specified
ByteBuf to the specified
StringBuilder . |
Modifier and Type | Method and Description |
---|---|
protected void |
SniHandler.decode(ChannelHandlerContext ctx,
ByteBuf in,
List<Object> out) |
protected void |
SslHandler.decode(ChannelHandlerContext ctx,
ByteBuf in,
List<Object> out) |
static boolean |
SslHandler.isEncrypted(ByteBuf buffer)
Returns
true if the given ByteBuf is encrypted. |
Modifier and Type | Method and Description |
---|---|
ByteBuf |
ChunkedStream.readChunk(ChannelHandlerContext ctx) |
ByteBuf |
ChunkedNioStream.readChunk(ChannelHandlerContext ctx) |
ByteBuf |
ChunkedNioFile.readChunk(ChannelHandlerContext ctx) |
ByteBuf |
ChunkedFile.readChunk(ChannelHandlerContext ctx) |
Copyright © 2008–2015 The Netty Project. All rights reserved.