Uses of Interface
org.jboss.netty.buffer.ChannelBuffer
Packages that use ChannelBuffer
Package
Description
Abstraction of a byte buffer - the fundamental data structure
to represent a low-level binary and text message.
An HTTP-based client-side
SocketChannel
and its corresponding server-side Servlet implementation that make your
existing server application work in a firewalled network.NIO-based socket channel
API implementation - recommended for a large number of connections (>= 1000).
This package contains an example web socket web server.
Encoder and decoder which transform a
Base64-encoded
String
or ChannelBuffer
into a decoded ChannelBuffer
and vice versa.Encoder and decoder which compresses and decompresses
ChannelBuffer
s
in a compression format such as zlib
and gzip.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.
Encoder, decoder and their related message types for HTTP.
HTTP multipart support.
Encoder, decoder, handshakers and their related message types for
Web Socket data frames.
Decoder and Encoder which uses JBoss Marshalling.
Encoder and decoder which transform a
Google Protocol Buffers
Message
into a ChannelBuffer
and vice versa.Specialized variation of
FrameDecoder
which enables implementation of a non-blocking decoder in the blocking I/O
paradigm.An RTSP
extension based on the HTTP codec.
Encoder, decoder and their compatibility stream implementations which
transform a
Serializable
object into a byte buffer and
vice versa.Encoder, decoder and their related message types for Socks.
Encoder, decoder, session handler and their related message types for the SPDY protocol.
Logs a
ChannelEvent
for debugging purpose
using an InternalLogger
.-
Uses of ChannelBuffer in org.jboss.netty.buffer
Subinterfaces of ChannelBuffer in org.jboss.netty.bufferModifier and TypeInterfaceDescriptioninterface
The common interface for buffer wrappers and derived buffers.Classes in org.jboss.netty.buffer that implement ChannelBufferModifier and TypeClassDescriptionclass
A skeletal implementation of a buffer.class
A big-endian Java heap buffer.class
A NIOByteBuffer
based buffer.class
A virtual buffer which shows multiple buffers as a single merged buffer.class
A derived buffer which simply forwards all data access requests to its parent.class
A dynamic capacity buffer which increases its capacity as needed.class
An immutable empty buffer implementation.class
A skeletal implementation for Java heap buffers.class
A little-endian Java heap buffer.class
A derived buffer which forbids any write requests to its parent.class
A derived buffer which exposes its parent's sub-region only.class
A derived buffer which hides its parent's tail data beyond a certain index.Fields in org.jboss.netty.buffer declared as ChannelBufferModifier and TypeFieldDescriptionprivate final ChannelBuffer
ChannelBufferInputStream.buffer
private final ChannelBuffer
ChannelBufferOutputStream.buffer
private final ChannelBuffer
DuplicatedChannelBuffer.buffer
private ChannelBuffer
DynamicChannelBuffer.buffer
private final ChannelBuffer
ReadOnlyChannelBuffer.buffer
private final ChannelBuffer
SlicedChannelBuffer.buffer
private final ChannelBuffer
TruncatedChannelBuffer.buffer
private ChannelBuffer[]
CompositeChannelBuffer.components
static final ChannelBuffer
ChannelBuffers.EMPTY_BUFFER
A buffer whose capacity is0
.private ChannelBuffer
DirectChannelBufferFactory.preallocatedBEBuf
private ChannelBuffer
DirectChannelBufferFactory.preallocatedLEBuf
Methods in org.jboss.netty.buffer that return ChannelBufferModifier and TypeMethodDescriptionprivate ChannelBuffer
DirectChannelBufferFactory.allocateBigEndianBuffer
(int capacity) private ChannelBuffer
DirectChannelBufferFactory.allocateLittleEndianBuffer
(int capacity) ChannelBufferOutputStream.buffer()
Returns the buffer where this stream is writing data.static ChannelBuffer
ChannelBuffers.buffer
(int capacity) Creates a new big-endian Java heap buffer with the specifiedcapacity
.static ChannelBuffer
Creates a new Java heap buffer with the specifiedendianness
andcapacity
.private static ChannelBuffer
ChannelBuffers.compositeBuffer
(ByteOrder endianness, List<ChannelBuffer> components, boolean gathering) static ChannelBuffer
ChannelBuffers.copiedBuffer
(byte[] array) Creates a new big-endian buffer whose content is a copy of the specifiedarray
.static ChannelBuffer
ChannelBuffers.copiedBuffer
(byte[]... arrays) Creates a new big-endian buffer whose content is a merged copy of the specifiedarrays
.static ChannelBuffer
ChannelBuffers.copiedBuffer
(byte[] array, int offset, int length) Creates a new big-endian buffer whose content is a copy of the specifiedarray
's sub-region.static ChannelBuffer
ChannelBuffers.copiedBuffer
(char[] array, int offset, int length, Charset charset) Creates a new big-endian buffer whose content is a subregion of the specifiedarray
encoded in the specifiedcharset
.static ChannelBuffer
ChannelBuffers.copiedBuffer
(char[] array, Charset charset) Creates a new big-endian buffer whose content is the specifiedarray
encoded in the specifiedcharset
.static ChannelBuffer
ChannelBuffers.copiedBuffer
(CharSequence string, int offset, int length, Charset charset) Creates a new big-endian buffer whose content is a subregion of the specifiedstring
encoded in the specifiedcharset
.static ChannelBuffer
ChannelBuffers.copiedBuffer
(CharSequence string, Charset charset) Creates a new big-endian buffer whose content is the specifiedstring
encoded in the specifiedcharset
.static ChannelBuffer
ChannelBuffers.copiedBuffer
(ByteBuffer buffer) Creates a new buffer whose content is a copy of the specifiedbuffer
's current slice.static ChannelBuffer
ChannelBuffers.copiedBuffer
(ByteBuffer... buffers) Creates a new buffer whose content is a merged copy of the specifiedbuffers
' slices.static ChannelBuffer
ChannelBuffers.copiedBuffer
(ByteOrder endianness, byte[] array) Creates a new buffer with the specifiedendianness
whose content is a copy of the specifiedarray
.static ChannelBuffer
ChannelBuffers.copiedBuffer
(ByteOrder endianness, byte[]... arrays) Creates a new buffer with the specifiedendianness
whose content is a merged copy of the specifiedarrays
.static ChannelBuffer
ChannelBuffers.copiedBuffer
(ByteOrder endianness, byte[] array, int offset, int length) Creates a new buffer with the specifiedendianness
whose content is a copy of the specifiedarray
's sub-region.static ChannelBuffer
ChannelBuffers.copiedBuffer
(ByteOrder endianness, char[] array, int offset, int length, Charset charset) Creates a new buffer with the specifiedendianness
whose content is a subregion of the specifiedarray
encoded in the specifiedcharset
.static ChannelBuffer
ChannelBuffers.copiedBuffer
(ByteOrder endianness, char[] array, Charset charset) Creates a new buffer with the specifiedendianness
whose content is the specifiedarray
encoded in the specifiedcharset
.static ChannelBuffer
ChannelBuffers.copiedBuffer
(ByteOrder endianness, CharSequence string, int offset, int length, Charset charset) Creates a new buffer with the specifiedendianness
whose content is a subregion of the specifiedstring
encoded in the specifiedcharset
.static ChannelBuffer
ChannelBuffers.copiedBuffer
(ByteOrder endianness, CharSequence string, Charset charset) Creates a new buffer with the specifiedendianness
whose content is the specifiedstring
encoded in the specifiedcharset
.private static ChannelBuffer
ChannelBuffers.copiedBuffer
(ByteOrder endianness, CharBuffer buffer, Charset charset) static ChannelBuffer
ChannelBuffers.copiedBuffer
(ChannelBuffer buffer) Creates a new buffer whose content is a copy of the specifiedbuffer
's readable bytes.static ChannelBuffer
ChannelBuffers.copiedBuffer
(ChannelBuffer... buffers) Creates a new buffer whose content is a merged copy of the specifiedbuffers
' readable bytes.AbstractChannelBuffer.copy()
BigEndianHeapChannelBuffer.copy
(int index, int length) ByteBufferBackedChannelBuffer.copy
(int index, int length) ChannelBuffer.copy()
Returns a copy of this buffer's readable bytes.ChannelBuffer.copy
(int index, int length) Returns a copy of this buffer's sub-region.CompositeChannelBuffer.copy
(int index, int length) DuplicatedChannelBuffer.copy
(int index, int length) DynamicChannelBuffer.copy
(int index, int length) LittleEndianHeapChannelBuffer.copy
(int index, int length) ReadOnlyChannelBuffer.copy
(int index, int length) SlicedChannelBuffer.copy
(int index, int length) TruncatedChannelBuffer.copy
(int index, int length) static ChannelBuffer
ChannelBuffers.directBuffer
(int capacity) Creates a new big-endian direct buffer with the specifiedcapacity
.static ChannelBuffer
ChannelBuffers.directBuffer
(ByteOrder endianness, int capacity) Creates a new direct buffer with the specifiedendianness
andcapacity
.BigEndianHeapChannelBuffer.duplicate()
ByteBufferBackedChannelBuffer.duplicate()
ChannelBuffer.duplicate()
Returns a buffer which shares the whole region of this buffer.CompositeChannelBuffer.duplicate()
DuplicatedChannelBuffer.duplicate()
DynamicChannelBuffer.duplicate()
LittleEndianHeapChannelBuffer.duplicate()
ReadOnlyChannelBuffer.duplicate()
SlicedChannelBuffer.duplicate()
TruncatedChannelBuffer.duplicate()
static ChannelBuffer
ChannelBuffers.dynamicBuffer()
Creates a new big-endian dynamic buffer whose estimated data length is256
bytes.static ChannelBuffer
ChannelBuffers.dynamicBuffer
(int estimatedLength) Creates a new big-endian dynamic buffer with the specified estimated data length.static ChannelBuffer
ChannelBuffers.dynamicBuffer
(int estimatedLength, ChannelBufferFactory factory) Creates a new big-endian dynamic buffer with the specified estimated data length using the specified factory.static ChannelBuffer
ChannelBuffers.dynamicBuffer
(ByteOrder endianness, int estimatedLength) Creates a new dynamic buffer with the specified endianness and the specified estimated data length.static ChannelBuffer
ChannelBuffers.dynamicBuffer
(ByteOrder endianness, int estimatedLength, ChannelBufferFactory factory) Creates a new dynamic buffer with the specified endianness and the specified estimated data length using the specified factory.static ChannelBuffer
ChannelBuffers.dynamicBuffer
(ChannelBufferFactory factory) AbstractChannelBufferFactory.getBuffer
(byte[] array, int offset, int length) AbstractChannelBufferFactory.getBuffer
(int capacity) ChannelBufferFactory.getBuffer
(byte[] array, int offset, int length) Returns aChannelBuffer
whose content is equal to the sub-region of the specifiedarray
.ChannelBufferFactory.getBuffer
(int capacity) Returns aChannelBuffer
with the specifiedcapacity
.ChannelBufferFactory.getBuffer
(ByteBuffer nioBuffer) Returns aChannelBuffer
whose content is equal to the sub-region of the specifiednioBuffer
.Returns aChannelBuffer
whose content is equal to the sub-region of the specifiedarray
.CompositeChannelBuffer.getBuffer
(int index) DirectChannelBufferFactory.getBuffer
(ByteBuffer nioBuffer) HeapChannelBufferFactory.getBuffer
(ByteBuffer nioBuffer) static ChannelBuffer
Create aChannelBuffer
from the given hex dumpAbstractChannelBuffer.readBytes
(int length) ChannelBuffer.readBytes
(int length) Transfers this buffer's data to a newly created buffer starting at the currentreaderIndex
and increases thereaderIndex
by the number of the transferred bytes (=length
).EmptyChannelBuffer.readBytes
(int length) AbstractChannelBuffer.readSlice
(int length) ChannelBuffer.readSlice
(int length) Returns a new slice of this buffer's sub-region starting at the currentreaderIndex
and increases thereaderIndex
by the size of the new slice (=length
).EmptyChannelBuffer.readSlice
(int length) AbstractChannelBuffer.slice()
ByteBufferBackedChannelBuffer.slice
(int index, int length) ChannelBuffer.slice()
Returns a slice of this buffer's readable bytes.ChannelBuffer.slice
(int index, int length) Returns a slice of this buffer's sub-region.CompositeChannelBuffer.slice
(int index, int length) DuplicatedChannelBuffer.slice
(int index, int length) DynamicChannelBuffer.slice
(int index, int length) HeapChannelBuffer.slice
(int index, int length) ReadOnlyChannelBuffer.slice
(int index, int length) SlicedChannelBuffer.slice
(int index, int length) TruncatedChannelBuffer.slice
(int index, int length) static ChannelBuffer
ChannelBuffers.unmodifiableBuffer
(ChannelBuffer buffer) Creates a read-only buffer which disallows any modification operations on the specifiedbuffer
.DuplicatedChannelBuffer.unwrap()
ReadOnlyChannelBuffer.unwrap()
SlicedChannelBuffer.unwrap()
TruncatedChannelBuffer.unwrap()
WrappedChannelBuffer.unwrap()
Returns this buffer's parent that this buffer is wrapping.static ChannelBuffer
ChannelBuffers.wrappedBuffer
(boolean gathering, ByteBuffer... buffers) Creates a new composite buffer which wraps the slices of the specified NIO buffers without copying them.static ChannelBuffer
ChannelBuffers.wrappedBuffer
(boolean gathering, ChannelBuffer... buffers) Creates a new composite buffer which wraps the readable bytes of the specified buffers without copying them.static ChannelBuffer
ChannelBuffers.wrappedBuffer
(byte[] array) Creates a new big-endian buffer which wraps the specifiedarray
.static ChannelBuffer
ChannelBuffers.wrappedBuffer
(byte[]... arrays) Creates a new big-endian composite buffer which wraps the specified arrays without copying them.static ChannelBuffer
ChannelBuffers.wrappedBuffer
(byte[] array, int offset, int length) Creates a new big-endian buffer which wraps the sub-region of the specifiedarray
.static ChannelBuffer
ChannelBuffers.wrappedBuffer
(ByteBuffer buffer) Creates a new buffer which wraps the specified NIO buffer's current slice.static ChannelBuffer
ChannelBuffers.wrappedBuffer
(ByteBuffer... buffers) Creates a new composite buffer which wraps the slices of the specified NIO buffers without copying them.static ChannelBuffer
ChannelBuffers.wrappedBuffer
(ByteOrder endianness, byte[] array) Creates a new buffer which wraps the specifiedarray
with the specifiedendianness
.static ChannelBuffer
ChannelBuffers.wrappedBuffer
(ByteOrder endianness, byte[]... arrays) Creates a new composite buffer which wraps the specified arrays without copying them.static ChannelBuffer
ChannelBuffers.wrappedBuffer
(ByteOrder endianness, byte[] array, int offset, int length) Creates a new buffer which wraps the sub-region of the specifiedarray
with the specifiedendianness
.static ChannelBuffer
ChannelBuffers.wrappedBuffer
(ChannelBuffer buffer) Creates a new buffer which wraps the specified buffer's readable bytes.static ChannelBuffer
ChannelBuffers.wrappedBuffer
(ChannelBuffer... buffers) Creates a new composite buffer which wraps the readable bytes of the specified buffers without copying them.Methods in org.jboss.netty.buffer that return types with arguments of type ChannelBufferModifier and TypeMethodDescriptionCompositeChannelBuffer.decompose
(int index, int length) Same withCompositeChannelBuffer.slice(int, int)
except that this method returns a list.Methods in org.jboss.netty.buffer with parameters of type ChannelBufferModifier and TypeMethodDescriptionstatic int
ChannelBuffers.compare
(ChannelBuffer bufferA, ChannelBuffer bufferB) Compares the two specified buffers as described incompareTo(ChannelBuffer)
.int
AbstractChannelBuffer.compareTo
(ChannelBuffer that) int
ChannelBuffer.compareTo
(ChannelBuffer buffer) Compares the content of the specified buffer to the content of this buffer.static ChannelBuffer
ChannelBuffers.copiedBuffer
(ChannelBuffer buffer) Creates a new buffer whose content is a copy of the specifiedbuffer
's readable bytes.static ChannelBuffer
ChannelBuffers.copiedBuffer
(ChannelBuffer... buffers) Creates a new buffer whose content is a merged copy of the specifiedbuffers
' readable bytes.private void
CompositeChannelBuffer.copyTo
(int index, int length, int componentId, ChannelBuffer dst) static boolean
ChannelBuffers.equals
(ChannelBuffer bufferA, ChannelBuffer bufferB) Returnstrue
if and only if the two specified buffers are identical to each other as described inChannelBuffer#equals(Object)
.boolean
ChannelBufferIndexFinder.find
(ChannelBuffer buffer, int guessedIndex) Returnstrue
if and only if the data is found at the specifiedguessedIndex
of the specifiedbuffer
.private static int
ChannelBuffers.firstIndexOf
(ChannelBuffer buffer, int fromIndex, int toIndex, byte value) private static int
ChannelBuffers.firstIndexOf
(ChannelBuffer buffer, int fromIndex, int toIndex, ChannelBufferIndexFinder indexFinder) void
AbstractChannelBuffer.getBytes
(int index, ChannelBuffer dst) void
AbstractChannelBuffer.getBytes
(int index, ChannelBuffer dst, int length) void
ByteBufferBackedChannelBuffer.getBytes
(int index, ChannelBuffer dst, int dstIndex, int length) void
ChannelBuffer.getBytes
(int index, ChannelBuffer dst) Transfers this buffer's data to the specified destination starting at the specified absoluteindex
until the destination becomes non-writable.void
ChannelBuffer.getBytes
(int index, ChannelBuffer dst, int length) Transfers this buffer's data to the specified destination starting at the specified absoluteindex
.void
ChannelBuffer.getBytes
(int index, ChannelBuffer dst, int dstIndex, int length) Transfers this buffer's data to the specified destination starting at the specified absoluteindex
.void
CompositeChannelBuffer.getBytes
(int index, ChannelBuffer dst, int dstIndex, int length) void
DuplicatedChannelBuffer.getBytes
(int index, ChannelBuffer dst, int dstIndex, int length) void
DynamicChannelBuffer.getBytes
(int index, ChannelBuffer dst, int dstIndex, int length) void
HeapChannelBuffer.getBytes
(int index, ChannelBuffer dst, int dstIndex, int length) void
ReadOnlyChannelBuffer.getBytes
(int index, ChannelBuffer dst, int dstIndex, int length) void
SlicedChannelBuffer.getBytes
(int index, ChannelBuffer dst, int dstIndex, int length) void
TruncatedChannelBuffer.getBytes
(int index, ChannelBuffer dst, int dstIndex, int length) static int
ChannelBuffers.hashCode
(ChannelBuffer buffer) Calculates the hash code of the specified buffer.static String
ChannelBuffers.hexDump
(ChannelBuffer buffer) Returns a hex dump of the specified buffer's readable bytes.static String
ChannelBuffers.hexDump
(ChannelBuffer buffer, int fromIndex, int length) Returns a hex dump of the specified buffer's sub-region.static int
ChannelBuffers.indexOf
(ChannelBuffer buffer, int fromIndex, int toIndex, byte value) The default implementation ofindexOf(int, int, byte)
.static int
ChannelBuffers.indexOf
(ChannelBuffer buffer, int fromIndex, int toIndex, ChannelBufferIndexFinder indexFinder) The default implementation ofindexOf(int, int, ChannelBufferIndexFinder)
.private static int
ChannelBuffers.lastIndexOf
(ChannelBuffer buffer, int fromIndex, int toIndex, byte value) private static int
ChannelBuffers.lastIndexOf
(ChannelBuffer buffer, int fromIndex, int toIndex, ChannelBufferIndexFinder indexFinder) void
AbstractChannelBuffer.readBytes
(ChannelBuffer dst) void
AbstractChannelBuffer.readBytes
(ChannelBuffer dst, int length) void
AbstractChannelBuffer.readBytes
(ChannelBuffer dst, int dstIndex, int length) void
ChannelBuffer.readBytes
(ChannelBuffer dst) Transfers this buffer's data to the specified destination starting at the currentreaderIndex
until the destination becomes non-writable, and increases thereaderIndex
by the number of the transferred bytes.void
ChannelBuffer.readBytes
(ChannelBuffer dst, int length) Transfers this buffer's data to the specified destination starting at the currentreaderIndex
and increases thereaderIndex
by the number of the transferred bytes (=length
).void
ChannelBuffer.readBytes
(ChannelBuffer dst, int dstIndex, int length) Transfers this buffer's data to the specified destination starting at the currentreaderIndex
and increases thereaderIndex
by the number of the transferred bytes (=length
).void
EmptyChannelBuffer.readBytes
(ChannelBuffer dst) void
EmptyChannelBuffer.readBytes
(ChannelBuffer dst, int length) void
EmptyChannelBuffer.readBytes
(ChannelBuffer dst, int dstIndex, int length) void
AbstractChannelBuffer.setBytes
(int index, ChannelBuffer src) void
AbstractChannelBuffer.setBytes
(int index, ChannelBuffer src, int length) void
ByteBufferBackedChannelBuffer.setBytes
(int index, ChannelBuffer src, int srcIndex, int length) void
ChannelBuffer.setBytes
(int index, ChannelBuffer src) Transfers the specified source buffer's data to this buffer starting at the specified absoluteindex
until the source buffer becomes unreadable.void
ChannelBuffer.setBytes
(int index, ChannelBuffer src, int length) Transfers the specified source buffer's data to this buffer starting at the specified absoluteindex
.void
ChannelBuffer.setBytes
(int index, ChannelBuffer src, int srcIndex, int length) Transfers the specified source buffer's data to this buffer starting at the specified absoluteindex
.void
CompositeChannelBuffer.setBytes
(int index, ChannelBuffer src, int srcIndex, int length) void
DuplicatedChannelBuffer.setBytes
(int index, ChannelBuffer src, int srcIndex, int length) void
DynamicChannelBuffer.setBytes
(int index, ChannelBuffer src, int srcIndex, int length) void
HeapChannelBuffer.setBytes
(int index, ChannelBuffer src, int srcIndex, int length) void
ReadOnlyChannelBuffer.setBytes
(int index, ChannelBuffer src, int srcIndex, int length) void
SlicedChannelBuffer.setBytes
(int index, ChannelBuffer src, int srcIndex, int length) void
TruncatedChannelBuffer.setBytes
(int index, ChannelBuffer src, int srcIndex, int length) static ChannelBuffer
ChannelBuffers.unmodifiableBuffer
(ChannelBuffer buffer) Creates a read-only buffer which disallows any modification operations on the specifiedbuffer
.static ChannelBuffer
ChannelBuffers.wrappedBuffer
(boolean gathering, ChannelBuffer... buffers) Creates a new composite buffer which wraps the readable bytes of the specified buffers without copying them.static ChannelBuffer
ChannelBuffers.wrappedBuffer
(ChannelBuffer buffer) Creates a new buffer which wraps the specified buffer's readable bytes.static ChannelBuffer
ChannelBuffers.wrappedBuffer
(ChannelBuffer... buffers) Creates a new composite buffer which wraps the readable bytes of the specified buffers without copying them.void
AbstractChannelBuffer.writeBytes
(ChannelBuffer src) void
AbstractChannelBuffer.writeBytes
(ChannelBuffer src, int length) void
AbstractChannelBuffer.writeBytes
(ChannelBuffer src, int srcIndex, int length) void
ChannelBuffer.writeBytes
(ChannelBuffer src) Transfers the specified source buffer's data to this buffer starting at the currentwriterIndex
until the source buffer becomes unreadable, and increases thewriterIndex
by the number of the transferred bytes.void
ChannelBuffer.writeBytes
(ChannelBuffer src, int length) Transfers the specified source buffer's data to this buffer starting at the currentwriterIndex
and increases thewriterIndex
by the number of the transferred bytes (=length
).void
ChannelBuffer.writeBytes
(ChannelBuffer src, int srcIndex, int length) Transfers the specified source buffer's data to this buffer starting at the currentwriterIndex
and increases thewriterIndex
by the number of the transferred bytes (=length
).void
DynamicChannelBuffer.writeBytes
(ChannelBuffer src, int srcIndex, int length) void
EmptyChannelBuffer.writeBytes
(ChannelBuffer src, int length) void
EmptyChannelBuffer.writeBytes
(ChannelBuffer src, int srcIndex, int length) Method parameters in org.jboss.netty.buffer with type arguments of type ChannelBufferModifier and TypeMethodDescriptionprivate static ChannelBuffer
ChannelBuffers.compositeBuffer
(ByteOrder endianness, List<ChannelBuffer> components, boolean gathering) private void
CompositeChannelBuffer.setComponents
(List<ChannelBuffer> newComponents) Setup this ChannelBuffer from the listConstructors in org.jboss.netty.buffer with parameters of type ChannelBufferModifierConstructorDescriptionCreates a new stream which reads data from the specifiedbuffer
starting at the currentreaderIndex
and ending at the currentwriterIndex
.ChannelBufferInputStream
(ChannelBuffer buffer, int length) Creates a new stream which reads data from the specifiedbuffer
starting at the currentreaderIndex
and ending atreaderIndex + length
.Creates a new stream which writes data to the specifiedbuffer
.DuplicatedChannelBuffer
(ChannelBuffer buffer) ReadOnlyChannelBuffer
(ChannelBuffer buffer) SlicedChannelBuffer
(ChannelBuffer buffer, int index, int length) TruncatedChannelBuffer
(ChannelBuffer buffer, int length) Constructor parameters in org.jboss.netty.buffer with type arguments of type ChannelBufferModifierConstructorDescriptionCompositeChannelBuffer
(ByteOrder endianness, List<ChannelBuffer> buffers, boolean gathering) -
Uses of ChannelBuffer in org.jboss.netty.channel.socket.http
Methods in org.jboss.netty.channel.socket.http that return ChannelBufferModifier and TypeMethodDescriptionprivate static ChannelBuffer
HttpTunnelingServlet.read
(PushbackInputStream in) Methods in org.jboss.netty.channel.socket.http with parameters of type ChannelBufferModifier and TypeMethodDescription(package private) void
HttpTunnelingClientSocketChannel.writeReal
(ChannelBuffer a, ChannelFuture future) -
Uses of ChannelBuffer in org.jboss.netty.channel.socket.nio
Methods in org.jboss.netty.channel.socket.nio with parameters of type ChannelBufferModifier and TypeMethodDescriptionprivate SocketSendBufferPool.SendBuffer
SocketSendBufferPool.acquire
(ChannelBuffer src) -
Uses of ChannelBuffer in org.jboss.netty.example.discard
Methods in org.jboss.netty.example.discard that return ChannelBuffer -
Uses of ChannelBuffer in org.jboss.netty.example.echo
Fields in org.jboss.netty.example.echo declared as ChannelBuffer -
Uses of ChannelBuffer in org.jboss.netty.example.factorial
Methods in org.jboss.netty.example.factorial with parameters of type ChannelBufferModifier and TypeMethodDescriptionprotected Object
BigIntegerDecoder.decode
(ChannelHandlerContext ctx, Channel channel, ChannelBuffer buffer) -
Uses of ChannelBuffer in org.jboss.netty.example.http.websocketx.server
Methods in org.jboss.netty.example.http.websocketx.server that return ChannelBufferModifier and TypeMethodDescriptionstatic ChannelBuffer
WebSocketServerIndexPage.getContent
(String webSocketLocation) -
Uses of ChannelBuffer in org.jboss.netty.example.portunification
Methods in org.jboss.netty.example.portunification with parameters of type ChannelBufferModifier and TypeMethodDescriptionprotected Object
PortUnificationServerHandler.decode
(ChannelHandlerContext ctx, Channel channel, ChannelBuffer buffer) private boolean
PortUnificationServerHandler.isSsl
(ChannelBuffer buffer) -
Uses of ChannelBuffer in org.jboss.netty.handler.codec.base64
Methods in org.jboss.netty.handler.codec.base64 that return ChannelBufferModifier and TypeMethodDescriptionstatic ChannelBuffer
Base64.decode
(ChannelBuffer src) static ChannelBuffer
Base64.decode
(ChannelBuffer src, int off, int len) static ChannelBuffer
Base64.decode
(ChannelBuffer src, int off, int len, ChannelBufferFactory bufferFactory) static ChannelBuffer
Base64.decode
(ChannelBuffer src, int off, int len, Base64Dialect dialect) static ChannelBuffer
Base64.decode
(ChannelBuffer src, int off, int len, Base64Dialect dialect, ChannelBufferFactory bufferFactory) static ChannelBuffer
Base64.decode
(ChannelBuffer src, ChannelBufferFactory bufferFactory) static ChannelBuffer
Base64.decode
(ChannelBuffer src, Base64Dialect dialect) static ChannelBuffer
Base64.decode
(ChannelBuffer src, Base64Dialect dialect, ChannelBufferFactory bufferFactory) static ChannelBuffer
Base64.encode
(ChannelBuffer src) static ChannelBuffer
Base64.encode
(ChannelBuffer src, boolean breakLines) static ChannelBuffer
Base64.encode
(ChannelBuffer src, boolean breakLines, ChannelBufferFactory bufferFactory) static ChannelBuffer
Base64.encode
(ChannelBuffer src, boolean breakLines, Base64Dialect dialect) static ChannelBuffer
Base64.encode
(ChannelBuffer src, boolean breakLines, Base64Dialect dialect, ChannelBufferFactory bufferFactory) static ChannelBuffer
Base64.encode
(ChannelBuffer src, int off, int len) static ChannelBuffer
Base64.encode
(ChannelBuffer src, int off, int len, boolean breakLines) static ChannelBuffer
Base64.encode
(ChannelBuffer src, int off, int len, boolean breakLines, ChannelBufferFactory bufferFactory) static ChannelBuffer
Base64.encode
(ChannelBuffer src, int off, int len, boolean breakLines, Base64Dialect dialect) static ChannelBuffer
Base64.encode
(ChannelBuffer src, int off, int len, boolean breakLines, Base64Dialect dialect, ChannelBufferFactory bufferFactory) static ChannelBuffer
Base64.encode
(ChannelBuffer src, int off, int len, ChannelBufferFactory bufferFactory) static ChannelBuffer
Base64.encode
(ChannelBuffer src, int off, int len, Base64Dialect dialect) static ChannelBuffer
Base64.encode
(ChannelBuffer src, int off, int len, Base64Dialect dialect, ChannelBufferFactory bufferFactory) static ChannelBuffer
Base64.encode
(ChannelBuffer src, ChannelBufferFactory bufferFactory) static ChannelBuffer
Base64.encode
(ChannelBuffer src, Base64Dialect dialect) static ChannelBuffer
Base64.encode
(ChannelBuffer src, Base64Dialect dialect, ChannelBufferFactory bufferFactory) Methods in org.jboss.netty.handler.codec.base64 with parameters of type ChannelBufferModifier and TypeMethodDescriptionstatic ChannelBuffer
Base64.decode
(ChannelBuffer src) static ChannelBuffer
Base64.decode
(ChannelBuffer src, int off, int len) static ChannelBuffer
Base64.decode
(ChannelBuffer src, int off, int len, ChannelBufferFactory bufferFactory) static ChannelBuffer
Base64.decode
(ChannelBuffer src, int off, int len, Base64Dialect dialect) static ChannelBuffer
Base64.decode
(ChannelBuffer src, int off, int len, Base64Dialect dialect, ChannelBufferFactory bufferFactory) static ChannelBuffer
Base64.decode
(ChannelBuffer src, ChannelBufferFactory bufferFactory) static ChannelBuffer
Base64.decode
(ChannelBuffer src, Base64Dialect dialect) static ChannelBuffer
Base64.decode
(ChannelBuffer src, Base64Dialect dialect, ChannelBufferFactory bufferFactory) private static int
Base64.decode4to3
(byte[] src, int srcOffset, ChannelBuffer dest, int destOffset, Base64Dialect dialect) static ChannelBuffer
Base64.encode
(ChannelBuffer src) static ChannelBuffer
Base64.encode
(ChannelBuffer src, boolean breakLines) static ChannelBuffer
Base64.encode
(ChannelBuffer src, boolean breakLines, ChannelBufferFactory bufferFactory) static ChannelBuffer
Base64.encode
(ChannelBuffer src, boolean breakLines, Base64Dialect dialect) static ChannelBuffer
Base64.encode
(ChannelBuffer src, boolean breakLines, Base64Dialect dialect, ChannelBufferFactory bufferFactory) static ChannelBuffer
Base64.encode
(ChannelBuffer src, int off, int len) static ChannelBuffer
Base64.encode
(ChannelBuffer src, int off, int len, boolean breakLines) static ChannelBuffer
Base64.encode
(ChannelBuffer src, int off, int len, boolean breakLines, ChannelBufferFactory bufferFactory) static ChannelBuffer
Base64.encode
(ChannelBuffer src, int off, int len, boolean breakLines, Base64Dialect dialect) static ChannelBuffer
Base64.encode
(ChannelBuffer src, int off, int len, boolean breakLines, Base64Dialect dialect, ChannelBufferFactory bufferFactory) static ChannelBuffer
Base64.encode
(ChannelBuffer src, int off, int len, ChannelBufferFactory bufferFactory) static ChannelBuffer
Base64.encode
(ChannelBuffer src, int off, int len, Base64Dialect dialect) static ChannelBuffer
Base64.encode
(ChannelBuffer src, int off, int len, Base64Dialect dialect, ChannelBufferFactory bufferFactory) static ChannelBuffer
Base64.encode
(ChannelBuffer src, ChannelBufferFactory bufferFactory) static ChannelBuffer
Base64.encode
(ChannelBuffer src, Base64Dialect dialect) static ChannelBuffer
Base64.encode
(ChannelBuffer src, Base64Dialect dialect, ChannelBufferFactory bufferFactory) private static void
Base64.encode3to4
(ChannelBuffer src, int srcOffset, int numSigBytes, ChannelBuffer dest, int destOffset, Base64Dialect dialect) -
Uses of ChannelBuffer in org.jboss.netty.handler.codec.compression
Methods in org.jboss.netty.handler.codec.compression with parameters of type ChannelBuffer -
Uses of ChannelBuffer in org.jboss.netty.handler.codec.frame
Fields in org.jboss.netty.handler.codec.frame declared as ChannelBufferModifier and TypeFieldDescriptionprotected ChannelBuffer
FrameDecoder.cumulation
private final ChannelBuffer[]
DelimiterBasedFrameDecoder.delimiters
Methods in org.jboss.netty.handler.codec.frame that return ChannelBufferModifier and TypeMethodDescriptionprotected ChannelBuffer
FrameDecoder.appendToCumulation
(ChannelBuffer input) protected ChannelBuffer
FrameDecoder.extractFrame
(ChannelBuffer buffer, int index, int length) Extract a Frame of the specified buffer.protected ChannelBuffer
FrameDecoder.internalBuffer()
Returns the internal cumulative buffer of this decoder.static ChannelBuffer[]
Delimiters.lineDelimiter()
ReturnsCR ('\r')
andLF ('\n')
delimiters, which could be used for text-based line protocols.protected ChannelBuffer
FixedLengthFrameDecoder.newCumulationBuffer
(ChannelHandlerContext ctx, int minimumCapacity) protected ChannelBuffer
FrameDecoder.newCumulationBuffer
(ChannelHandlerContext ctx, int minimumCapacity) Create a newChannelBuffer
which is used for the cumulation.static ChannelBuffer[]
Delimiters.nulDelimiter()
Returns aNUL (0x00)
delimiter, which could be used for Flash XML socket or any similar protocols.protected ChannelBuffer
FrameDecoder.updateCumulation
(ChannelHandlerContext ctx, ChannelBuffer input) Methods in org.jboss.netty.handler.codec.frame with parameters of type ChannelBufferModifier and TypeMethodDescriptionprotected ChannelBuffer
FrameDecoder.appendToCumulation
(ChannelBuffer input) private void
FrameDecoder.callDecode
(ChannelHandlerContext context, Channel channel, ChannelBuffer cumulation, SocketAddress remoteAddress) protected Object
DelimiterBasedFrameDecoder.decode
(ChannelHandlerContext ctx, Channel channel, ChannelBuffer buffer) protected Object
FixedLengthFrameDecoder.decode
(ChannelHandlerContext ctx, Channel channel, ChannelBuffer buffer) protected abstract Object
FrameDecoder.decode
(ChannelHandlerContext ctx, Channel channel, ChannelBuffer buffer) Decodes the received packets so far into a frame.protected Object
LengthFieldBasedFrameDecoder.decode
(ChannelHandlerContext ctx, Channel channel, ChannelBuffer buffer) protected Object
LineBasedFrameDecoder.decode
(ChannelHandlerContext ctx, Channel channel, ChannelBuffer buffer) protected Object
FrameDecoder.decodeLast
(ChannelHandlerContext ctx, Channel channel, ChannelBuffer buffer) Decodes the received data so far into a frame when the channel is disconnected.protected ChannelBuffer
FrameDecoder.extractFrame
(ChannelBuffer buffer, int index, int length) Extract a Frame of the specified buffer.private static int
LineBasedFrameDecoder.findEndOfLine
(ChannelBuffer buffer) Returns the index in the buffer of the end of line found.private static int
DelimiterBasedFrameDecoder.indexOf
(ChannelBuffer haystack, ChannelBuffer needle) Returns the number of bytes between the readerIndex of the haystack and the first needle found in the haystack.private static boolean
DelimiterBasedFrameDecoder.isLineBased
(ChannelBuffer[] delimiters) Returns true if the delimiters are "\n" and "\r\n".protected ChannelBuffer
FrameDecoder.updateCumulation
(ChannelHandlerContext ctx, ChannelBuffer input) private static void
DelimiterBasedFrameDecoder.validateDelimiter
(ChannelBuffer delimiter) Constructors in org.jboss.netty.handler.codec.frame with parameters of type ChannelBufferModifierConstructorDescriptionDelimiterBasedFrameDecoder
(int maxFrameLength, boolean stripDelimiter, boolean failFast, ChannelBuffer delimiter) Creates a new instance.DelimiterBasedFrameDecoder
(int maxFrameLength, boolean stripDelimiter, boolean failFast, ChannelBuffer... delimiters) Creates a new instance.DelimiterBasedFrameDecoder
(int maxFrameLength, boolean stripDelimiter, ChannelBuffer delimiter) Creates a new instance.DelimiterBasedFrameDecoder
(int maxFrameLength, boolean stripDelimiter, ChannelBuffer... delimiters) Creates a new instance.DelimiterBasedFrameDecoder
(int maxFrameLength, ChannelBuffer delimiter) Creates a new instance.DelimiterBasedFrameDecoder
(int maxFrameLength, ChannelBuffer... delimiters) Creates a new instance. -
Uses of ChannelBuffer in org.jboss.netty.handler.codec.http
Fields in org.jboss.netty.handler.codec.http declared as ChannelBufferModifier and TypeFieldDescriptionprivate ChannelBuffer
DefaultHttpChunk.content
private ChannelBuffer
DefaultHttpMessage.content
private ChannelBuffer
HttpMessageDecoder.content
private static final ChannelBuffer
HttpChunkAggregator.CONTINUE
private static final ChannelBuffer
HttpMessageEncoder.LAST_CHUNK
Fields in org.jboss.netty.handler.codec.http with type parameters of type ChannelBufferModifier and TypeFieldDescriptionprivate DecoderEmbedder<ChannelBuffer>
HttpContentDecoder.decoder
private EncoderEmbedder<ChannelBuffer>
HttpContentEncoder.encoder
Methods in org.jboss.netty.handler.codec.http that return ChannelBufferModifier and TypeMethodDescriptionprivate ChannelBuffer
HttpContentDecoder.decode
(ChannelBuffer buf) private ChannelBuffer
HttpContentEncoder.encode
(ChannelBuffer buf) private ChannelBuffer
HttpContentDecoder.finishDecode()
private ChannelBuffer
HttpContentEncoder.finishEncode()
DefaultHttpChunk.getContent()
DefaultHttpChunkTrailer.getContent()
DefaultHttpMessage.getContent()
HttpChunk.getContent()
Returns the content of this chunk.HttpMessage.getContent()
Returns the content of this message.Methods in org.jboss.netty.handler.codec.http that return types with arguments of type ChannelBufferModifier and TypeMethodDescriptionprotected abstract DecoderEmbedder<ChannelBuffer>
HttpContentDecoder.newContentDecoder
(String contentEncoding) Returns a newDecoderEmbedder
that decodes the HTTP message content encoded in the specified contentEncoding.protected DecoderEmbedder<ChannelBuffer>
HttpContentDecompressor.newContentDecoder
(String contentEncoding) protected EncoderEmbedder<ChannelBuffer>
HttpContentCompressor.newContentEncoder
(HttpMessage msg, String acceptEncoding) protected abstract EncoderEmbedder<ChannelBuffer>
HttpContentEncoder.newContentEncoder
(HttpMessage msg, String acceptEncoding) Returns a newEncoderEmbedder
that encodes the HTTP message content.Methods in org.jboss.netty.handler.codec.http with parameters of type ChannelBufferModifier and TypeMethodDescriptionprotected void
HttpChunkAggregator.appendToCumulation
(ChannelBuffer input) protected Object
HttpClientCodec.Decoder.decode
(ChannelHandlerContext ctx, Channel channel, ChannelBuffer buffer, HttpMessageDecoder.State state) private ChannelBuffer
HttpContentDecoder.decode
(ChannelBuffer buf) protected Object
HttpMessageDecoder.decode
(ChannelHandlerContext ctx, Channel channel, ChannelBuffer buffer, HttpMessageDecoder.State state) private ChannelBuffer
HttpContentEncoder.encode
(ChannelBuffer buf) protected static void
HttpMessageEncoder.encodeAscii
(String s, ChannelBuffer buf) private static void
HttpMessageEncoder.encodeHeader
(ChannelBuffer buf, String header, String value) private static void
HttpMessageEncoder.encodeHeaders
(ChannelBuffer buf, HttpMessage message) protected abstract void
HttpMessageEncoder.encodeInitialLine
(ChannelBuffer buf, HttpMessage message) protected void
HttpRequestEncoder.encodeInitialLine
(ChannelBuffer buf, HttpMessage message) protected void
HttpResponseEncoder.encodeInitialLine
(ChannelBuffer buf, HttpMessage message) private static void
HttpMessageEncoder.encodeTrailingHeaders
(ChannelBuffer buf, HttpChunkTrailer trailer) private Object
HttpMessageDecoder.readFixedLengthContent
(ChannelBuffer buffer) private String
HttpMessageDecoder.readHeader
(ChannelBuffer buffer) private HttpMessageDecoder.State
HttpMessageDecoder.readHeaders
(ChannelBuffer buffer) private static String
HttpMessageDecoder.readLine
(ChannelBuffer buffer, int maxLineLength) private HttpChunkTrailer
HttpMessageDecoder.readTrailingHeaders
(ChannelBuffer buffer) void
DefaultHttpChunk.setContent
(ChannelBuffer content) void
DefaultHttpChunkTrailer.setContent
(ChannelBuffer content) void
DefaultHttpMessage.setContent
(ChannelBuffer content) void
HttpChunk.setContent
(ChannelBuffer content) Sets the content of this chunk.void
HttpMessage.setContent
(ChannelBuffer content) Sets the content of this message.private static void
HttpMessageDecoder.skipControlCharacters
(ChannelBuffer buffer) Constructors in org.jboss.netty.handler.codec.http with parameters of type ChannelBufferModifierConstructorDescriptionDefaultHttpChunk
(ChannelBuffer content) Creates a new instance with the specified chunk content. -
Uses of ChannelBuffer in org.jboss.netty.handler.codec.http.multipart
Fields in org.jboss.netty.handler.codec.http.multipart declared as ChannelBufferModifier and TypeFieldDescription(package private) ChannelBuffer
HttpPostBodyUtil.SeekAheadOptimize.buffer
private ChannelBuffer
AbstractMemoryHttpData.channelBuffer
private ChannelBuffer
HttpPostRequestEncoder.currentBuffer
The ChannelBuffer currently used by the encoderprivate ChannelBuffer
HttpPostMultipartRequestDecoder.undecodedChunk
The current channelBufferprivate ChannelBuffer
HttpPostStandardRequestDecoder.undecodedChunk
The current channelBufferMethods in org.jboss.netty.handler.codec.http.multipart that return ChannelBufferModifier and TypeMethodDescriptionprivate ChannelBuffer
HttpPostRequestEncoder.fillChannelBuffer()
AbstractDiskHttpData.getChannelBuffer()
AbstractMemoryHttpData.getChannelBuffer()
Utility to go from a In Memory FileUpload to a Disk (or another implementation) FileUploadHttpData.getChannelBuffer()
Returns the content of the file item as a ChannelBufferMixedAttribute.getChannelBuffer()
MixedFileUpload.getChannelBuffer()
AbstractDiskHttpData.getChunk
(int length) AbstractMemoryHttpData.getChunk
(int length) 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.MixedAttribute.getChunk
(int length) MixedFileUpload.getChunk
(int length) InternalAttribute.toChannelBuffer()
Methods in org.jboss.netty.handler.codec.http.multipart with parameters of type ChannelBufferModifier and TypeMethodDescriptionvoid
AbstractDiskHttpData.addContent
(ChannelBuffer buffer, boolean last) void
AbstractMemoryHttpData.addContent
(ChannelBuffer buffer, boolean last) void
DiskAttribute.addContent
(ChannelBuffer buffer, boolean last) void
HttpData.addContent
(ChannelBuffer buffer, boolean last) Add the content from the ChannelBuffervoid
MemoryAttribute.addContent
(ChannelBuffer buffer, boolean last) void
MixedAttribute.addContent
(ChannelBuffer buffer, boolean last) void
MixedFileUpload.addContent
(ChannelBuffer buffer, boolean last) void
AbstractDiskHttpData.setContent
(ChannelBuffer buffer) void
AbstractMemoryHttpData.setContent
(ChannelBuffer buffer) void
HttpData.setContent
(ChannelBuffer buffer) Set the content from the ChannelBuffer (erase any previous data)void
MixedAttribute.setContent
(ChannelBuffer buffer) void
MixedFileUpload.setContent
(ChannelBuffer buffer) private void
HttpPostStandardRequestDecoder.setFinalBuffer
(ChannelBuffer buffer) Constructors in org.jboss.netty.handler.codec.http.multipart with parameters of type ChannelBuffer -
Uses of ChannelBuffer in org.jboss.netty.handler.codec.http.websocketx
Fields in org.jboss.netty.handler.codec.http.websocketx declared as ChannelBufferModifier and TypeFieldDescriptionprivate ChannelBuffer
WebSocketFrame.binaryData
Contents of this frameprivate ChannelBuffer
WebSocketClientHandshaker00.expectedChallengeResponseBytes
private ChannelBuffer
WebSocket08FrameDecoder.framePayload
private ChannelBuffer
WebSocket08FrameDecoder.maskingKey
Methods in org.jboss.netty.handler.codec.http.websocketx that return ChannelBufferModifier and TypeMethodDescriptionWebSocketFrame.getBinaryData()
Returns binary data(package private) static ChannelBuffer
WebSocketUtil.md5
(ChannelBuffer buffer) Performs an MD5 hash(package private) static ChannelBuffer
WebSocketUtil.sha1
(ChannelBuffer buffer) Performs an SHA-1 hashMethods in org.jboss.netty.handler.codec.http.websocketx with parameters of type ChannelBufferModifier and TypeMethodDescription(package private) static String
WebSocketUtil.base64
(ChannelBuffer buffer) Base 64 encodingprotected void
WebSocket08FrameDecoder.checkCloseFrameBody
(Channel channel, ChannelBuffer buffer) protected Object
WebSocket00FrameDecoder.decode
(ChannelHandlerContext ctx, Channel channel, ChannelBuffer buffer, VoidEnum state) protected Object
WebSocket08FrameDecoder.decode
(ChannelHandlerContext ctx, Channel channel, ChannelBuffer buffer, WebSocket08FrameDecoder.State state) private WebSocketFrame
WebSocket00FrameDecoder.decodeBinaryFrame
(byte type, ChannelBuffer buffer) private WebSocketFrame
WebSocket00FrameDecoder.decodeTextFrame
(ChannelBuffer buffer) (package private) static ChannelBuffer
WebSocketUtil.md5
(ChannelBuffer buffer) Performs an MD5 hashvoid
WebSocketFrame.setBinaryData
(ChannelBuffer binaryData) Sets the binary data for this frame(package private) static ChannelBuffer
WebSocketUtil.sha1
(ChannelBuffer buffer) Performs an SHA-1 hashprivate void
WebSocket08FrameDecoder.unmask
(ChannelBuffer frame) Constructors in org.jboss.netty.handler.codec.http.websocketx with parameters of type ChannelBufferModifierConstructorDescriptionBinaryWebSocketFrame
(boolean finalFragment, int rsv, ChannelBuffer binaryData) Creates a new binary frame with the specified binary data and the final fragment flag.BinaryWebSocketFrame
(ChannelBuffer binaryData) Creates a new binary frame with the specified binary data.CloseWebSocketFrame
(boolean finalFragment, int rsv, ChannelBuffer binaryData) Creates a new close frameContinuationWebSocketFrame
(boolean finalFragment, int rsv, ChannelBuffer binaryData) Creates a new continuation frame with the specified binary dataContinuationWebSocketFrame
(ChannelBuffer binaryData) Creates a new continuation frame with the specified binary data.PingWebSocketFrame
(boolean finalFragment, int rsv, ChannelBuffer binaryData) Creates a new ping frame with the specified binary dataPingWebSocketFrame
(ChannelBuffer binaryData) Creates a new ping frame with the specified binary data.PongWebSocketFrame
(boolean finalFragment, int rsv, ChannelBuffer binaryData) Creates a new pong frame with the specified binary dataPongWebSocketFrame
(ChannelBuffer binaryData) Creates a new pong frame with the specified binary data.TextWebSocketFrame
(boolean finalFragment, int rsv, ChannelBuffer binaryData) Creates a new text frame with the specified binary data.TextWebSocketFrame
(ChannelBuffer binaryData) Creates a new text frame with the specified binary data. -
Uses of ChannelBuffer in org.jboss.netty.handler.codec.marshalling
Fields in org.jboss.netty.handler.codec.marshalling declared as ChannelBufferModifier and TypeFieldDescriptionprivate final ChannelBuffer
ChannelBufferByteInput.buffer
private final ChannelBuffer
ChannelBufferByteOutput.buffer
Methods in org.jboss.netty.handler.codec.marshalling that return ChannelBufferModifier and TypeMethodDescriptionprotected ChannelBuffer
MarshallingDecoder.extractFrame
(ChannelBuffer buffer, int index, int length) ChannelBufferByteOutput.getBuffer()
Return theChannelBuffer
which contains the written contentMethods in org.jboss.netty.handler.codec.marshalling with parameters of type ChannelBufferModifier and TypeMethodDescriptionprotected Object
CompatibleMarshallingDecoder.decode
(ChannelHandlerContext ctx, Channel channel, ChannelBuffer buffer, VoidEnum state) protected Object
MarshallingDecoder.decode
(ChannelHandlerContext ctx, Channel channel, ChannelBuffer buffer) protected Object
CompatibleMarshallingDecoder.decodeLast
(ChannelHandlerContext ctx, Channel channel, ChannelBuffer buffer, VoidEnum state) protected ChannelBuffer
MarshallingDecoder.extractFrame
(ChannelBuffer buffer, int index, int length) Constructors in org.jboss.netty.handler.codec.marshalling with parameters of type ChannelBufferModifierConstructorDescriptionChannelBufferByteInput
(ChannelBuffer buffer) ChannelBufferByteOutput
(ChannelBuffer buffer) Create a new instance which use the givenChannelBuffer
-
Uses of ChannelBuffer in org.jboss.netty.handler.codec.protobuf
Methods in org.jboss.netty.handler.codec.protobuf with parameters of type ChannelBufferModifier and TypeMethodDescriptionprotected Object
ProtobufVarint32FrameDecoder.decode
(ChannelHandlerContext ctx, Channel channel, ChannelBuffer buffer) -
Uses of ChannelBuffer in org.jboss.netty.handler.codec.replay
Classes in org.jboss.netty.handler.codec.replay that implement ChannelBufferMethods in org.jboss.netty.handler.codec.replay that return ChannelBufferModifier and TypeMethodDescriptionprivate ChannelBuffer
ReplayingDecoderBuffer.buf()
ReplayingDecoderBuffer.copy()
ReplayingDecoderBuffer.copy
(int index, int length) ReplayingDecoderBuffer.duplicate()
protected ChannelBuffer
ReplayingDecoder.internalBuffer()
ReplayingDecoderBuffer.readBytes
(int length) ReplayingDecoderBuffer.readSlice
(int length) ReplayingDecoderBuffer.slice()
ReplayingDecoderBuffer.slice
(int index, int length) Methods in org.jboss.netty.handler.codec.replay with parameters of type ChannelBufferModifier and TypeMethodDescriptionprivate void
ReplayingDecoder.callDecode
(ChannelHandlerContext context, Channel channel, ChannelBuffer input, ChannelBuffer replayableInput, SocketAddress remoteAddress) int
ReplayingDecoderBuffer.compareTo
(ChannelBuffer buffer) protected final Object
ReplayingDecoder.decode
(ChannelHandlerContext ctx, Channel channel, ChannelBuffer buffer) protected abstract Object
ReplayingDecoder.decode
(ChannelHandlerContext ctx, Channel channel, ChannelBuffer buffer, T state) Decodes the received packets so far into a frame.protected final Object
ReplayingDecoder.decodeLast
(ChannelHandlerContext ctx, Channel channel, ChannelBuffer buffer) protected Object
ReplayingDecoder.decodeLast
(ChannelHandlerContext ctx, Channel channel, ChannelBuffer buffer, T state) Decodes the received data so far into a frame when the channel is disconnected.void
ReplayingDecoderBuffer.getBytes
(int index, ChannelBuffer dst) void
ReplayingDecoderBuffer.getBytes
(int index, ChannelBuffer dst, int length) void
ReplayingDecoderBuffer.getBytes
(int index, ChannelBuffer dst, int dstIndex, int length) void
ReplayingDecoderBuffer.readBytes
(ChannelBuffer dst) void
ReplayingDecoderBuffer.readBytes
(ChannelBuffer dst, int length) void
ReplayingDecoderBuffer.readBytes
(ChannelBuffer dst, int dstIndex, int length) void
ReplayingDecoderBuffer.setBytes
(int index, ChannelBuffer src) void
ReplayingDecoderBuffer.setBytes
(int index, ChannelBuffer src, int length) void
ReplayingDecoderBuffer.setBytes
(int index, ChannelBuffer src, int srcIndex, int length) void
ReplayingDecoderBuffer.writeBytes
(ChannelBuffer src) void
ReplayingDecoderBuffer.writeBytes
(ChannelBuffer src, int length) void
ReplayingDecoderBuffer.writeBytes
(ChannelBuffer src, int srcIndex, int length) -
Uses of ChannelBuffer in org.jboss.netty.handler.codec.rtsp
Methods in org.jboss.netty.handler.codec.rtsp with parameters of type ChannelBufferModifier and TypeMethodDescriptionprotected Object
RtspMessageDecoder.decode
(ChannelHandlerContext ctx, Channel channel, ChannelBuffer buffer, HttpMessageDecoder.State state) protected void
RtspRequestEncoder.encodeInitialLine
(ChannelBuffer buf, HttpMessage message) protected void
RtspResponseEncoder.encodeInitialLine
(ChannelBuffer buf, HttpMessage message) -
Uses of ChannelBuffer in org.jboss.netty.handler.codec.serialization
Fields in org.jboss.netty.handler.codec.serialization with type parameters of type ChannelBufferModifier and TypeFieldDescriptionprivate final AtomicReference<ChannelBuffer>
CompatibleObjectEncoder.buffer
Methods in org.jboss.netty.handler.codec.serialization that return ChannelBufferModifier and TypeMethodDescriptionprivate ChannelBuffer
CompatibleObjectEncoder.buffer
(ChannelHandlerContext ctx) protected ChannelBuffer
ObjectDecoder.extractFrame
(ChannelBuffer buffer, int index, int length) Methods in org.jboss.netty.handler.codec.serialization with parameters of type ChannelBufferModifier and TypeMethodDescriptionprotected Object
ObjectDecoder.decode
(ChannelHandlerContext ctx, Channel channel, ChannelBuffer buffer) protected ChannelBuffer
ObjectDecoder.extractFrame
(ChannelBuffer buffer, int index, int length) -
Uses of ChannelBuffer in org.jboss.netty.handler.codec.socks
Methods in org.jboss.netty.handler.codec.socks with parameters of type ChannelBufferModifier and TypeMethodDescriptionprotected Object
SocksAuthRequestDecoder.decode
(ChannelHandlerContext ctx, Channel channel, ChannelBuffer buffer, SocksAuthRequestDecoder.State state) protected Object
SocksAuthResponseDecoder.decode
(ChannelHandlerContext ctx, Channel channel, ChannelBuffer buffer, SocksAuthResponseDecoder.State state) protected Object
SocksCmdRequestDecoder.decode
(ChannelHandlerContext ctx, Channel channel, ChannelBuffer buffer, SocksCmdRequestDecoder.State state) protected Object
SocksCmdResponseDecoder.decode
(ChannelHandlerContext ctx, Channel channel, ChannelBuffer buffer, SocksCmdResponseDecoder.State state) protected Object
SocksInitRequestDecoder.decode
(ChannelHandlerContext ctx, Channel channel, ChannelBuffer buffer, SocksInitRequestDecoder.State state) protected Object
SocksInitResponseDecoder.decode
(ChannelHandlerContext ctx, Channel channel, ChannelBuffer buffer, SocksInitResponseDecoder.State state) void
SocksAuthRequest.encodeAsByteBuf
(ChannelBuffer channelBuffer) void
SocksAuthResponse.encodeAsByteBuf
(ChannelBuffer channelBuffer) void
SocksCmdRequest.encodeAsByteBuf
(ChannelBuffer channelBuffer) void
SocksCmdResponse.encodeAsByteBuf
(ChannelBuffer channelBuffer) void
SocksInitRequest.encodeAsByteBuf
(ChannelBuffer channelBuffer) void
SocksInitResponse.encodeAsByteBuf
(ChannelBuffer channelBuffer) abstract void
SocksMessage.encodeAsByteBuf
(ChannelBuffer channelBuffer) Encode socks message into its byte representation and write it into byteBufvoid
UnknownSocksMessage.encodeAsByteBuf
(ChannelBuffer byteBuf) void
UnknownSocksRequest.encodeAsByteBuf
(ChannelBuffer buffer) void
UnknownSocksResponse.encodeAsByteBuf
(ChannelBuffer buffer) -
Uses of ChannelBuffer in org.jboss.netty.handler.codec.spdy
Fields in org.jboss.netty.handler.codec.spdy declared as ChannelBufferModifier and TypeFieldDescriptionprivate ChannelBuffer
SpdyHeaderBlockRawDecoder.cumulation
private ChannelBuffer
DefaultSpdyDataFrame.data
private ChannelBuffer
SpdyHeaderBlockZlibDecoder.decompressed
Methods in org.jboss.netty.handler.codec.spdy that return ChannelBufferModifier and TypeMethodDescription(package private) abstract ChannelBuffer
SpdyHeaderBlockEncoder.encode
(SpdyHeadersFrame frame) SpdyHeaderBlockJZlibEncoder.encode
(SpdyHeadersFrame frame) SpdyHeaderBlockRawEncoder.encode
(SpdyHeadersFrame headerFrame) SpdyHeaderBlockZlibEncoder.encode
(SpdyHeadersFrame frame) SpdyFrameEncoder.encodeDataFrame
(int streamId, boolean last, ChannelBuffer data) SpdyFrameEncoder.encodeGoAwayFrame
(int lastGoodStreamId, int statusCode) SpdyFrameEncoder.encodeHeadersFrame
(int streamId, boolean last, ChannelBuffer headerBlock) SpdyFrameEncoder.encodePingFrame
(int id) SpdyFrameEncoder.encodeRstStreamFrame
(int streamId, int statusCode) SpdyFrameEncoder.encodeSettingsFrame
(SpdySettingsFrame spdySettingsFrame) SpdyFrameEncoder.encodeSynReplyFrame
(int streamId, boolean last, ChannelBuffer headerBlock) SpdyFrameEncoder.encodeSynStreamFrame
(int streamId, int associatedToStreamId, byte priority, boolean last, boolean unidirectional, ChannelBuffer headerBlock) SpdyFrameEncoder.encodeWindowUpdateFrame
(int streamId, int deltaWindowSize) DefaultSpdyDataFrame.getData()
SpdyDataFrame.getData()
Returns the data payload of this frame.Methods in org.jboss.netty.handler.codec.spdy with parameters of type ChannelBufferModifier and TypeMethodDescriptionprivate boolean
SpdyHeaderBlockZlibEncoder.compressInto
(ChannelBuffer compressed) private SpdyDataFrame[]
SpdyHttpEncoder.createSpdyDataFrames
(int streamId, ChannelBuffer content) protected Object
SpdyFrameCodec.decode
(ChannelHandlerContext ctx, Channel channel, ChannelBuffer buffer) void
SpdyFrameDecoder.decode
(ChannelBuffer buffer) (package private) abstract void
SpdyHeaderBlockDecoder.decode
(ChannelBuffer headerBlock, SpdyHeadersFrame frame) Decodes a SPDY Header Block, adding the Name/Value pairs to the given Headers frame.(package private) void
SpdyHeaderBlockRawDecoder.decode
(ChannelBuffer headerBlock, SpdyHeadersFrame frame) (package private) void
SpdyHeaderBlockZlibDecoder.decode
(ChannelBuffer headerBlock, SpdyHeadersFrame frame) protected void
SpdyHeaderBlockRawDecoder.decodeHeaderBlock
(ChannelBuffer headerBlock, SpdyHeadersFrame frame) private void
SpdyHeaderBlockJZlibEncoder.encode
(ChannelBuffer compressed) private void
SpdyHeaderBlockZlibEncoder.encode
(ChannelBuffer compressed) SpdyFrameEncoder.encodeDataFrame
(int streamId, boolean last, ChannelBuffer data) SpdyFrameEncoder.encodeHeadersFrame
(int streamId, boolean last, ChannelBuffer headerBlock) SpdyFrameEncoder.encodeSynReplyFrame
(int streamId, boolean last, ChannelBuffer headerBlock) SpdyFrameEncoder.encodeSynStreamFrame
(int streamId, int associatedToStreamId, byte priority, boolean last, boolean unidirectional, ChannelBuffer headerBlock) (package private) static int
SpdyCodecUtil.getSignedInt
(ChannelBuffer buf, int offset) Reads a big-endian signed integer from the buffer.(package private) static int
SpdyCodecUtil.getUnsignedInt
(ChannelBuffer buf, int offset) Reads a big-endian (31-bit) integer from the buffer.(package private) static int
SpdyCodecUtil.getUnsignedMedium
(ChannelBuffer buf, int offset) Reads a big-endian unsigned medium integer from the buffer.(package private) static int
SpdyCodecUtil.getUnsignedShort
(ChannelBuffer buf, int offset) Reads a big-endian unsigned short integer from the buffer.void
SpdyFrameCodec.readDataFrame
(int streamId, boolean last, ChannelBuffer data) void
SpdyFrameDecoderDelegate.readDataFrame
(int streamId, boolean last, ChannelBuffer data) Called when a DATA frame is received.void
SpdyFrameCodec.readHeaderBlock
(ChannelBuffer headerBlock) void
SpdyFrameDecoderDelegate.readHeaderBlock
(ChannelBuffer headerBlock) Called when the header block within a SYN_STREAM, SYN_REPLY, or HEADERS frame is received.private int
SpdyHeaderBlockRawDecoder.readLengthField
(ChannelBuffer buffer) void
DefaultSpdyDataFrame.setData
(ChannelBuffer data) void
SpdyDataFrame.setData
(ChannelBuffer data) Sets the data payload of this frame.private void
SpdyHeaderBlockJZlibEncoder.setInput
(ChannelBuffer decompressed) private int
SpdyHeaderBlockZlibDecoder.setInput
(ChannelBuffer compressed) private int
SpdyHeaderBlockZlibEncoder.setInput
(ChannelBuffer decompressed) private static void
SpdyHeaderBlockRawEncoder.setLengthField
(ChannelBuffer buffer, int writerIndex, int length) private void
SpdyFrameEncoder.writeControlFrameHeader
(ChannelBuffer buffer, int type, byte flags, int length) private static void
SpdyHeaderBlockRawEncoder.writeLengthField
(ChannelBuffer buffer, int length) -
Uses of ChannelBuffer in org.jboss.netty.handler.logging
Methods in org.jboss.netty.handler.logging with parameters of type ChannelBufferModifier and TypeMethodDescriptionprivate static String
LoggingHandler.formatBuffer
(ChannelBuffer buf) -
Uses of ChannelBuffer in org.jboss.netty.handler.ssl
Methods in org.jboss.netty.handler.ssl that return ChannelBufferModifier and TypeMethodDescription(package private) static ChannelBuffer[]
PemReader.readCertificates
(File file) (package private) static ChannelBuffer
PemReader.readPrivateKey
(File file) private ChannelBuffer
SslHandler.unwrap
(ChannelHandlerContext ctx, Channel channel, ByteBuffer nioInNetBuf, int initialNettyOutAppBufCapacity, boolean mightNeedHandshake) Unwraps inbound SSL records.Methods in org.jboss.netty.handler.ssl with parameters of type ChannelBufferModifier and TypeMethodDescriptionprotected Object
SslHandler.decode
(ChannelHandlerContext ctx, Channel channel, ChannelBuffer in) private static int
SslHandler.getEncryptedPacketLength
(ChannelBuffer buffer, int offset) Return how much bytes can be read out of the encrypted data.private static short
SslHandler.getShort
(ChannelBuffer buf, int offset) Reads a big-endian short integer from the buffer.static boolean
SslHandler.isEncrypted
(ChannelBuffer buffer) Returnstrue
if the givenChannelBuffer
is encrypted.