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.
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.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.
-
Uses of ChannelBuffer in org.jboss.netty.buffer
Subinterfaces of ChannelBuffer in org.jboss.netty.bufferModifier and TypeInterfaceDescriptioninterfaceThe common interface for buffer wrappers and derived buffers.Classes in org.jboss.netty.buffer that implement ChannelBufferModifier and TypeClassDescriptionclassA skeletal implementation of a buffer.classA big-endian Java heap buffer.classA NIOByteBufferbased buffer.classA virtual buffer which shows multiple buffers as a single merged buffer.classA derived buffer which simply forwards all data access requests to its parent.classA dynamic capacity buffer which increases its capacity as needed.classAn immutable empty buffer implementation.classA skeletal implementation for Java heap buffers.classA little-endian Java heap buffer.classA derived buffer which forbids any write requests to its parent.classA derived buffer which exposes its parent's sub-region only.classA derived buffer which hides its parent's tail data beyond a certain index.Fields in org.jboss.netty.buffer declared as ChannelBufferModifier and TypeFieldDescriptionstatic final ChannelBufferChannelBuffers.EMPTY_BUFFERA buffer whose capacity is0.Methods in org.jboss.netty.buffer that return ChannelBufferModifier and TypeMethodDescriptionChannelBufferOutputStream.buffer()Returns the buffer where this stream is writing data.static ChannelBufferChannelBuffers.buffer(int capacity) Creates a new big-endian Java heap buffer with the specifiedcapacity.static ChannelBufferCreates a new Java heap buffer with the specifiedendiannessandcapacity.static ChannelBufferChannelBuffers.copiedBuffer(byte[] array) Creates a new big-endian buffer whose content is a copy of the specifiedarray.static ChannelBufferChannelBuffers.copiedBuffer(byte[]... arrays) Creates a new big-endian buffer whose content is a merged copy of the specifiedarrays.static ChannelBufferChannelBuffers.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 ChannelBufferChannelBuffers.copiedBuffer(char[] array, int offset, int length, Charset charset) Creates a new big-endian buffer whose content is a subregion of the specifiedarrayencoded in the specifiedcharset.static ChannelBufferChannelBuffers.copiedBuffer(char[] array, Charset charset) Creates a new big-endian buffer whose content is the specifiedarrayencoded in the specifiedcharset.static ChannelBufferChannelBuffers.copiedBuffer(CharSequence string, int offset, int length, Charset charset) Creates a new big-endian buffer whose content is a subregion of the specifiedstringencoded in the specifiedcharset.static ChannelBufferChannelBuffers.copiedBuffer(CharSequence string, Charset charset) Creates a new big-endian buffer whose content is the specifiedstringencoded in the specifiedcharset.static ChannelBufferChannelBuffers.copiedBuffer(ByteBuffer buffer) Creates a new buffer whose content is a copy of the specifiedbuffer's current slice.static ChannelBufferChannelBuffers.copiedBuffer(ByteBuffer... buffers) Creates a new buffer whose content is a merged copy of the specifiedbuffers' slices.static ChannelBufferChannelBuffers.copiedBuffer(ByteOrder endianness, byte[] array) Creates a new buffer with the specifiedendiannesswhose content is a copy of the specifiedarray.static ChannelBufferChannelBuffers.copiedBuffer(ByteOrder endianness, byte[]... arrays) Creates a new buffer with the specifiedendiannesswhose content is a merged copy of the specifiedarrays.static ChannelBufferChannelBuffers.copiedBuffer(ByteOrder endianness, byte[] array, int offset, int length) Creates a new buffer with the specifiedendiannesswhose content is a copy of the specifiedarray's sub-region.static ChannelBufferChannelBuffers.copiedBuffer(ByteOrder endianness, char[] array, int offset, int length, Charset charset) Creates a new buffer with the specifiedendiannesswhose content is a subregion of the specifiedarrayencoded in the specifiedcharset.static ChannelBufferChannelBuffers.copiedBuffer(ByteOrder endianness, char[] array, Charset charset) Creates a new buffer with the specifiedendiannesswhose content is the specifiedarrayencoded in the specifiedcharset.static ChannelBufferChannelBuffers.copiedBuffer(ByteOrder endianness, CharSequence string, int offset, int length, Charset charset) Creates a new buffer with the specifiedendiannesswhose content is a subregion of the specifiedstringencoded in the specifiedcharset.static ChannelBufferChannelBuffers.copiedBuffer(ByteOrder endianness, CharSequence string, Charset charset) Creates a new buffer with the specifiedendiannesswhose content is the specifiedstringencoded in the specifiedcharset.static ChannelBufferChannelBuffers.copiedBuffer(ChannelBuffer buffer) Creates a new buffer whose content is a copy of the specifiedbuffer's readable bytes.static ChannelBufferChannelBuffers.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 ChannelBufferChannelBuffers.directBuffer(int capacity) Creates a new big-endian direct buffer with the specifiedcapacity.static ChannelBufferChannelBuffers.directBuffer(ByteOrder endianness, int capacity) Creates a new direct buffer with the specifiedendiannessandcapacity.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 ChannelBufferChannelBuffers.dynamicBuffer()Creates a new big-endian dynamic buffer whose estimated data length is256bytes.static ChannelBufferChannelBuffers.dynamicBuffer(int estimatedLength) Creates a new big-endian dynamic buffer with the specified estimated data length.static ChannelBufferChannelBuffers.dynamicBuffer(int estimatedLength, ChannelBufferFactory factory) Creates a new big-endian dynamic buffer with the specified estimated data length using the specified factory.static ChannelBufferChannelBuffers.dynamicBuffer(ByteOrder endianness, int estimatedLength) Creates a new dynamic buffer with the specified endianness and the specified estimated data length.static ChannelBufferChannelBuffers.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 ChannelBufferChannelBuffers.dynamicBuffer(ChannelBufferFactory factory) AbstractChannelBufferFactory.getBuffer(byte[] array, int offset, int length) AbstractChannelBufferFactory.getBuffer(int capacity) ChannelBufferFactory.getBuffer(byte[] array, int offset, int length) Returns aChannelBufferwhose content is equal to the sub-region of the specifiedarray.ChannelBufferFactory.getBuffer(int capacity) Returns aChannelBufferwith the specifiedcapacity.ChannelBufferFactory.getBuffer(ByteBuffer nioBuffer) Returns aChannelBufferwhose content is equal to the sub-region of the specifiednioBuffer.Returns aChannelBufferwhose content is equal to the sub-region of the specifiedarray.CompositeChannelBuffer.getBuffer(int index) DirectChannelBufferFactory.getBuffer(ByteBuffer nioBuffer) HeapChannelBufferFactory.getBuffer(ByteBuffer nioBuffer) static ChannelBufferCreate aChannelBufferfrom the given hex dumpAbstractChannelBuffer.readBytes(int length) ChannelBuffer.readBytes(int length) Transfers this buffer's data to a newly created buffer starting at the currentreaderIndexand increases thereaderIndexby 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 currentreaderIndexand increases thereaderIndexby 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 ChannelBufferChannelBuffers.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 ChannelBufferChannelBuffers.wrappedBuffer(boolean gathering, ByteBuffer... buffers) Creates a new composite buffer which wraps the slices of the specified NIO buffers without copying them.static ChannelBufferChannelBuffers.wrappedBuffer(boolean gathering, ChannelBuffer... buffers) Creates a new composite buffer which wraps the readable bytes of the specified buffers without copying them.static ChannelBufferChannelBuffers.wrappedBuffer(byte[] array) Creates a new big-endian buffer which wraps the specifiedarray.static ChannelBufferChannelBuffers.wrappedBuffer(byte[]... arrays) Creates a new big-endian composite buffer which wraps the specified arrays without copying them.static ChannelBufferChannelBuffers.wrappedBuffer(byte[] array, int offset, int length) Creates a new big-endian buffer which wraps the sub-region of the specifiedarray.static ChannelBufferChannelBuffers.wrappedBuffer(ByteBuffer buffer) Creates a new buffer which wraps the specified NIO buffer's current slice.static ChannelBufferChannelBuffers.wrappedBuffer(ByteBuffer... buffers) Creates a new composite buffer which wraps the slices of the specified NIO buffers without copying them.static ChannelBufferChannelBuffers.wrappedBuffer(ByteOrder endianness, byte[] array) Creates a new buffer which wraps the specifiedarraywith the specifiedendianness.static ChannelBufferChannelBuffers.wrappedBuffer(ByteOrder endianness, byte[]... arrays) Creates a new composite buffer which wraps the specified arrays without copying them.static ChannelBufferChannelBuffers.wrappedBuffer(ByteOrder endianness, byte[] array, int offset, int length) Creates a new buffer which wraps the sub-region of the specifiedarraywith the specifiedendianness.static ChannelBufferChannelBuffers.wrappedBuffer(ChannelBuffer buffer) Creates a new buffer which wraps the specified buffer's readable bytes.static ChannelBufferChannelBuffers.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 intChannelBuffers.compare(ChannelBuffer bufferA, ChannelBuffer bufferB) Compares the two specified buffers as described incompareTo(ChannelBuffer).intAbstractChannelBuffer.compareTo(ChannelBuffer that) intChannelBuffer.compareTo(ChannelBuffer buffer) Compares the content of the specified buffer to the content of this buffer.static ChannelBufferChannelBuffers.copiedBuffer(ChannelBuffer buffer) Creates a new buffer whose content is a copy of the specifiedbuffer's readable bytes.static ChannelBufferChannelBuffers.copiedBuffer(ChannelBuffer... buffers) Creates a new buffer whose content is a merged copy of the specifiedbuffers' readable bytes.static booleanChannelBuffers.equals(ChannelBuffer bufferA, ChannelBuffer bufferB) Returnstrueif and only if the two specified buffers are identical to each other as described inChannelBuffer#equals(Object).booleanChannelBufferIndexFinder.find(ChannelBuffer buffer, int guessedIndex) Returnstrueif and only if the data is found at the specifiedguessedIndexof the specifiedbuffer.voidAbstractChannelBuffer.getBytes(int index, ChannelBuffer dst) voidAbstractChannelBuffer.getBytes(int index, ChannelBuffer dst, int length) voidByteBufferBackedChannelBuffer.getBytes(int index, ChannelBuffer dst, int dstIndex, int length) voidChannelBuffer.getBytes(int index, ChannelBuffer dst) Transfers this buffer's data to the specified destination starting at the specified absoluteindexuntil the destination becomes non-writable.voidChannelBuffer.getBytes(int index, ChannelBuffer dst, int length) Transfers this buffer's data to the specified destination starting at the specified absoluteindex.voidChannelBuffer.getBytes(int index, ChannelBuffer dst, int dstIndex, int length) Transfers this buffer's data to the specified destination starting at the specified absoluteindex.voidCompositeChannelBuffer.getBytes(int index, ChannelBuffer dst, int dstIndex, int length) voidDuplicatedChannelBuffer.getBytes(int index, ChannelBuffer dst, int dstIndex, int length) voidDynamicChannelBuffer.getBytes(int index, ChannelBuffer dst, int dstIndex, int length) voidHeapChannelBuffer.getBytes(int index, ChannelBuffer dst, int dstIndex, int length) voidReadOnlyChannelBuffer.getBytes(int index, ChannelBuffer dst, int dstIndex, int length) voidSlicedChannelBuffer.getBytes(int index, ChannelBuffer dst, int dstIndex, int length) voidTruncatedChannelBuffer.getBytes(int index, ChannelBuffer dst, int dstIndex, int length) static intChannelBuffers.hashCode(ChannelBuffer buffer) Calculates the hash code of the specified buffer.static StringChannelBuffers.hexDump(ChannelBuffer buffer) Returns a hex dump of the specified buffer's readable bytes.static StringChannelBuffers.hexDump(ChannelBuffer buffer, int fromIndex, int length) Returns a hex dump of the specified buffer's sub-region.static intChannelBuffers.indexOf(ChannelBuffer buffer, int fromIndex, int toIndex, byte value) The default implementation ofindexOf(int, int, byte).static intChannelBuffers.indexOf(ChannelBuffer buffer, int fromIndex, int toIndex, ChannelBufferIndexFinder indexFinder) The default implementation ofindexOf(int, int, ChannelBufferIndexFinder).voidAbstractChannelBuffer.readBytes(ChannelBuffer dst) voidAbstractChannelBuffer.readBytes(ChannelBuffer dst, int length) voidAbstractChannelBuffer.readBytes(ChannelBuffer dst, int dstIndex, int length) voidChannelBuffer.readBytes(ChannelBuffer dst) Transfers this buffer's data to the specified destination starting at the currentreaderIndexuntil the destination becomes non-writable, and increases thereaderIndexby the number of the transferred bytes.voidChannelBuffer.readBytes(ChannelBuffer dst, int length) Transfers this buffer's data to the specified destination starting at the currentreaderIndexand increases thereaderIndexby the number of the transferred bytes (=length).voidChannelBuffer.readBytes(ChannelBuffer dst, int dstIndex, int length) Transfers this buffer's data to the specified destination starting at the currentreaderIndexand increases thereaderIndexby the number of the transferred bytes (=length).voidEmptyChannelBuffer.readBytes(ChannelBuffer dst) voidEmptyChannelBuffer.readBytes(ChannelBuffer dst, int length) voidEmptyChannelBuffer.readBytes(ChannelBuffer dst, int dstIndex, int length) voidAbstractChannelBuffer.setBytes(int index, ChannelBuffer src) voidAbstractChannelBuffer.setBytes(int index, ChannelBuffer src, int length) voidByteBufferBackedChannelBuffer.setBytes(int index, ChannelBuffer src, int srcIndex, int length) voidChannelBuffer.setBytes(int index, ChannelBuffer src) Transfers the specified source buffer's data to this buffer starting at the specified absoluteindexuntil the source buffer becomes unreadable.voidChannelBuffer.setBytes(int index, ChannelBuffer src, int length) Transfers the specified source buffer's data to this buffer starting at the specified absoluteindex.voidChannelBuffer.setBytes(int index, ChannelBuffer src, int srcIndex, int length) Transfers the specified source buffer's data to this buffer starting at the specified absoluteindex.voidCompositeChannelBuffer.setBytes(int index, ChannelBuffer src, int srcIndex, int length) voidDuplicatedChannelBuffer.setBytes(int index, ChannelBuffer src, int srcIndex, int length) voidDynamicChannelBuffer.setBytes(int index, ChannelBuffer src, int srcIndex, int length) voidHeapChannelBuffer.setBytes(int index, ChannelBuffer src, int srcIndex, int length) voidReadOnlyChannelBuffer.setBytes(int index, ChannelBuffer src, int srcIndex, int length) voidSlicedChannelBuffer.setBytes(int index, ChannelBuffer src, int srcIndex, int length) voidTruncatedChannelBuffer.setBytes(int index, ChannelBuffer src, int srcIndex, int length) static ChannelBufferChannelBuffers.unmodifiableBuffer(ChannelBuffer buffer) Creates a read-only buffer which disallows any modification operations on the specifiedbuffer.static ChannelBufferChannelBuffers.wrappedBuffer(boolean gathering, ChannelBuffer... buffers) Creates a new composite buffer which wraps the readable bytes of the specified buffers without copying them.static ChannelBufferChannelBuffers.wrappedBuffer(ChannelBuffer buffer) Creates a new buffer which wraps the specified buffer's readable bytes.static ChannelBufferChannelBuffers.wrappedBuffer(ChannelBuffer... buffers) Creates a new composite buffer which wraps the readable bytes of the specified buffers without copying them.voidAbstractChannelBuffer.writeBytes(ChannelBuffer src) voidAbstractChannelBuffer.writeBytes(ChannelBuffer src, int length) voidAbstractChannelBuffer.writeBytes(ChannelBuffer src, int srcIndex, int length) voidChannelBuffer.writeBytes(ChannelBuffer src) Transfers the specified source buffer's data to this buffer starting at the currentwriterIndexuntil the source buffer becomes unreadable, and increases thewriterIndexby the number of the transferred bytes.voidChannelBuffer.writeBytes(ChannelBuffer src, int length) Transfers the specified source buffer's data to this buffer starting at the currentwriterIndexand increases thewriterIndexby the number of the transferred bytes (=length).voidChannelBuffer.writeBytes(ChannelBuffer src, int srcIndex, int length) Transfers the specified source buffer's data to this buffer starting at the currentwriterIndexand increases thewriterIndexby the number of the transferred bytes (=length).voidDynamicChannelBuffer.writeBytes(ChannelBuffer src, int srcIndex, int length) voidEmptyChannelBuffer.writeBytes(ChannelBuffer src, int length) voidEmptyChannelBuffer.writeBytes(ChannelBuffer src, int srcIndex, int length) Constructors in org.jboss.netty.buffer with parameters of type ChannelBufferModifierConstructorDescriptionCreates a new stream which reads data from the specifiedbufferstarting at the currentreaderIndexand ending at the currentwriterIndex.ChannelBufferInputStream(ChannelBuffer buffer, int length) Creates a new stream which reads data from the specifiedbufferstarting at the currentreaderIndexand 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.example.factorial
Methods in org.jboss.netty.example.factorial with parameters of type ChannelBufferModifier and TypeMethodDescriptionprotected ObjectBigIntegerDecoder.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 ChannelBufferWebSocketServerIndexPage.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 ObjectPortUnificationServerHandler.decode(ChannelHandlerContext ctx, Channel channel, 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 ChannelBufferBase64.decode(ChannelBuffer src) static ChannelBufferBase64.decode(ChannelBuffer src, int off, int len) static ChannelBufferBase64.decode(ChannelBuffer src, int off, int len, ChannelBufferFactory bufferFactory) static ChannelBufferBase64.decode(ChannelBuffer src, int off, int len, Base64Dialect dialect) static ChannelBufferBase64.decode(ChannelBuffer src, int off, int len, Base64Dialect dialect, ChannelBufferFactory bufferFactory) static ChannelBufferBase64.decode(ChannelBuffer src, ChannelBufferFactory bufferFactory) static ChannelBufferBase64.decode(ChannelBuffer src, Base64Dialect dialect) static ChannelBufferBase64.decode(ChannelBuffer src, Base64Dialect dialect, ChannelBufferFactory bufferFactory) static ChannelBufferBase64.encode(ChannelBuffer src) static ChannelBufferBase64.encode(ChannelBuffer src, boolean breakLines) static ChannelBufferBase64.encode(ChannelBuffer src, boolean breakLines, ChannelBufferFactory bufferFactory) static ChannelBufferBase64.encode(ChannelBuffer src, boolean breakLines, Base64Dialect dialect) static ChannelBufferBase64.encode(ChannelBuffer src, boolean breakLines, Base64Dialect dialect, ChannelBufferFactory bufferFactory) static ChannelBufferBase64.encode(ChannelBuffer src, int off, int len) static ChannelBufferBase64.encode(ChannelBuffer src, int off, int len, boolean breakLines) static ChannelBufferBase64.encode(ChannelBuffer src, int off, int len, boolean breakLines, ChannelBufferFactory bufferFactory) static ChannelBufferBase64.encode(ChannelBuffer src, int off, int len, boolean breakLines, Base64Dialect dialect) static ChannelBufferBase64.encode(ChannelBuffer src, int off, int len, boolean breakLines, Base64Dialect dialect, ChannelBufferFactory bufferFactory) static ChannelBufferBase64.encode(ChannelBuffer src, int off, int len, ChannelBufferFactory bufferFactory) static ChannelBufferBase64.encode(ChannelBuffer src, int off, int len, Base64Dialect dialect) static ChannelBufferBase64.encode(ChannelBuffer src, int off, int len, Base64Dialect dialect, ChannelBufferFactory bufferFactory) static ChannelBufferBase64.encode(ChannelBuffer src, ChannelBufferFactory bufferFactory) static ChannelBufferBase64.encode(ChannelBuffer src, Base64Dialect dialect) static ChannelBufferBase64.encode(ChannelBuffer src, Base64Dialect dialect, ChannelBufferFactory bufferFactory) Methods in org.jboss.netty.handler.codec.base64 with parameters of type ChannelBufferModifier and TypeMethodDescriptionstatic ChannelBufferBase64.decode(ChannelBuffer src) static ChannelBufferBase64.decode(ChannelBuffer src, int off, int len) static ChannelBufferBase64.decode(ChannelBuffer src, int off, int len, ChannelBufferFactory bufferFactory) static ChannelBufferBase64.decode(ChannelBuffer src, int off, int len, Base64Dialect dialect) static ChannelBufferBase64.decode(ChannelBuffer src, int off, int len, Base64Dialect dialect, ChannelBufferFactory bufferFactory) static ChannelBufferBase64.decode(ChannelBuffer src, ChannelBufferFactory bufferFactory) static ChannelBufferBase64.decode(ChannelBuffer src, Base64Dialect dialect) static ChannelBufferBase64.decode(ChannelBuffer src, Base64Dialect dialect, ChannelBufferFactory bufferFactory) static ChannelBufferBase64.encode(ChannelBuffer src) static ChannelBufferBase64.encode(ChannelBuffer src, boolean breakLines) static ChannelBufferBase64.encode(ChannelBuffer src, boolean breakLines, ChannelBufferFactory bufferFactory) static ChannelBufferBase64.encode(ChannelBuffer src, boolean breakLines, Base64Dialect dialect) static ChannelBufferBase64.encode(ChannelBuffer src, boolean breakLines, Base64Dialect dialect, ChannelBufferFactory bufferFactory) static ChannelBufferBase64.encode(ChannelBuffer src, int off, int len) static ChannelBufferBase64.encode(ChannelBuffer src, int off, int len, boolean breakLines) static ChannelBufferBase64.encode(ChannelBuffer src, int off, int len, boolean breakLines, ChannelBufferFactory bufferFactory) static ChannelBufferBase64.encode(ChannelBuffer src, int off, int len, boolean breakLines, Base64Dialect dialect) static ChannelBufferBase64.encode(ChannelBuffer src, int off, int len, boolean breakLines, Base64Dialect dialect, ChannelBufferFactory bufferFactory) static ChannelBufferBase64.encode(ChannelBuffer src, int off, int len, ChannelBufferFactory bufferFactory) static ChannelBufferBase64.encode(ChannelBuffer src, int off, int len, Base64Dialect dialect) static ChannelBufferBase64.encode(ChannelBuffer src, int off, int len, Base64Dialect dialect, ChannelBufferFactory bufferFactory) static ChannelBufferBase64.encode(ChannelBuffer src, ChannelBufferFactory bufferFactory) static ChannelBufferBase64.encode(ChannelBuffer src, Base64Dialect dialect) static ChannelBufferBase64.encode(ChannelBuffer src, Base64Dialect dialect, ChannelBufferFactory bufferFactory) -
Uses of ChannelBuffer in org.jboss.netty.handler.codec.frame
Fields in org.jboss.netty.handler.codec.frame declared as ChannelBufferMethods in org.jboss.netty.handler.codec.frame that return ChannelBufferModifier and TypeMethodDescriptionprotected ChannelBufferFrameDecoder.appendToCumulation(ChannelBuffer input) protected ChannelBufferFrameDecoder.extractFrame(ChannelBuffer buffer, int index, int length) Extract a Frame of the specified buffer.protected ChannelBufferFrameDecoder.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 ChannelBufferFixedLengthFrameDecoder.newCumulationBuffer(ChannelHandlerContext ctx, int minimumCapacity) protected ChannelBufferFrameDecoder.newCumulationBuffer(ChannelHandlerContext ctx, int minimumCapacity) Create a newChannelBufferwhich 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 ChannelBufferFrameDecoder.updateCumulation(ChannelHandlerContext ctx, ChannelBuffer input) Methods in org.jboss.netty.handler.codec.frame with parameters of type ChannelBufferModifier and TypeMethodDescriptionprotected ChannelBufferFrameDecoder.appendToCumulation(ChannelBuffer input) protected ObjectDelimiterBasedFrameDecoder.decode(ChannelHandlerContext ctx, Channel channel, ChannelBuffer buffer) protected ObjectFixedLengthFrameDecoder.decode(ChannelHandlerContext ctx, Channel channel, ChannelBuffer buffer) protected abstract ObjectFrameDecoder.decode(ChannelHandlerContext ctx, Channel channel, ChannelBuffer buffer) Decodes the received packets so far into a frame.protected ObjectLengthFieldBasedFrameDecoder.decode(ChannelHandlerContext ctx, Channel channel, ChannelBuffer buffer) protected ObjectLineBasedFrameDecoder.decode(ChannelHandlerContext ctx, Channel channel, ChannelBuffer buffer) protected ObjectFrameDecoder.decodeLast(ChannelHandlerContext ctx, Channel channel, ChannelBuffer buffer) Decodes the received data so far into a frame when the channel is disconnected.protected ChannelBufferFrameDecoder.extractFrame(ChannelBuffer buffer, int index, int length) Extract a Frame of the specified buffer.protected ChannelBufferFrameDecoder.updateCumulation(ChannelHandlerContext ctx, ChannelBuffer input) 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
Methods in org.jboss.netty.handler.codec.http that return ChannelBufferModifier and TypeMethodDescriptionDefaultHttpChunk.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 newDecoderEmbedderthat 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 newEncoderEmbedderthat encodes the HTTP message content.Methods in org.jboss.netty.handler.codec.http with parameters of type ChannelBufferModifier and TypeMethodDescriptionprotected voidHttpChunkAggregator.appendToCumulation(ChannelBuffer input) protected ObjectHttpMessageDecoder.decode(ChannelHandlerContext ctx, Channel channel, ChannelBuffer buffer, HttpMessageDecoder.State state) protected static voidHttpMessageEncoder.encodeAscii(String s, ChannelBuffer buf) protected abstract voidHttpMessageEncoder.encodeInitialLine(ChannelBuffer buf, HttpMessage message) protected voidHttpRequestEncoder.encodeInitialLine(ChannelBuffer buf, HttpMessage message) protected voidHttpResponseEncoder.encodeInitialLine(ChannelBuffer buf, HttpMessage message) voidDefaultHttpChunk.setContent(ChannelBuffer content) voidDefaultHttpChunkTrailer.setContent(ChannelBuffer content) voidDefaultHttpMessage.setContent(ChannelBuffer content) voidHttpChunk.setContent(ChannelBuffer content) Sets the content of this chunk.voidHttpMessage.setContent(ChannelBuffer content) Sets the content of this message.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
Methods in org.jboss.netty.handler.codec.http.multipart that return ChannelBufferModifier and TypeMethodDescriptionAbstractDiskHttpData.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 TypeMethodDescriptionvoidAbstractDiskHttpData.addContent(ChannelBuffer buffer, boolean last) voidAbstractMemoryHttpData.addContent(ChannelBuffer buffer, boolean last) voidDiskAttribute.addContent(ChannelBuffer buffer, boolean last) voidHttpData.addContent(ChannelBuffer buffer, boolean last) Add the content from the ChannelBuffervoidMemoryAttribute.addContent(ChannelBuffer buffer, boolean last) voidMixedAttribute.addContent(ChannelBuffer buffer, boolean last) voidMixedFileUpload.addContent(ChannelBuffer buffer, boolean last) voidAbstractDiskHttpData.setContent(ChannelBuffer buffer) voidAbstractMemoryHttpData.setContent(ChannelBuffer buffer) voidHttpData.setContent(ChannelBuffer buffer) Set the content from the ChannelBuffer (erase any previous data)voidMixedAttribute.setContent(ChannelBuffer buffer) voidMixedFileUpload.setContent(ChannelBuffer buffer) -
Uses of ChannelBuffer in org.jboss.netty.handler.codec.http.websocketx
Methods in org.jboss.netty.handler.codec.http.websocketx that return ChannelBufferMethods in org.jboss.netty.handler.codec.http.websocketx with parameters of type ChannelBufferModifier and TypeMethodDescriptionprotected voidWebSocket08FrameDecoder.checkCloseFrameBody(Channel channel, ChannelBuffer buffer) protected ObjectWebSocket00FrameDecoder.decode(ChannelHandlerContext ctx, Channel channel, ChannelBuffer buffer, VoidEnum state) protected ObjectWebSocket08FrameDecoder.decode(ChannelHandlerContext ctx, Channel channel, ChannelBuffer buffer, WebSocket08FrameDecoder.State state) voidWebSocketFrame.setBinaryData(ChannelBuffer binaryData) Sets the binary data for this frameConstructors 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
Methods in org.jboss.netty.handler.codec.marshalling that return ChannelBufferModifier and TypeMethodDescriptionprotected ChannelBufferMarshallingDecoder.extractFrame(ChannelBuffer buffer, int index, int length) Methods in org.jboss.netty.handler.codec.marshalling with parameters of type ChannelBufferModifier and TypeMethodDescriptionprotected ObjectCompatibleMarshallingDecoder.decode(ChannelHandlerContext ctx, Channel channel, ChannelBuffer buffer, VoidEnum state) protected ObjectMarshallingDecoder.decode(ChannelHandlerContext ctx, Channel channel, ChannelBuffer buffer) protected ObjectCompatibleMarshallingDecoder.decodeLast(ChannelHandlerContext ctx, Channel channel, ChannelBuffer buffer, VoidEnum state) protected ChannelBufferMarshallingDecoder.extractFrame(ChannelBuffer buffer, int index, int length) -
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 ObjectProtobufVarint32FrameDecoder.decode(ChannelHandlerContext ctx, Channel channel, ChannelBuffer buffer) -
Uses of ChannelBuffer in org.jboss.netty.handler.codec.replay
Methods in org.jboss.netty.handler.codec.replay that return ChannelBufferMethods in org.jboss.netty.handler.codec.replay with parameters of type ChannelBufferModifier and TypeMethodDescriptionprotected final ObjectReplayingDecoder.decode(ChannelHandlerContext ctx, Channel channel, ChannelBuffer buffer) protected abstract ObjectReplayingDecoder.decode(ChannelHandlerContext ctx, Channel channel, ChannelBuffer buffer, T state) Decodes the received packets so far into a frame.protected final ObjectReplayingDecoder.decodeLast(ChannelHandlerContext ctx, Channel channel, ChannelBuffer buffer) protected ObjectReplayingDecoder.decodeLast(ChannelHandlerContext ctx, Channel channel, ChannelBuffer buffer, T state) Decodes the received data so far into a frame when the channel is disconnected. -
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 ObjectRtspMessageDecoder.decode(ChannelHandlerContext ctx, Channel channel, ChannelBuffer buffer, HttpMessageDecoder.State state) protected voidRtspRequestEncoder.encodeInitialLine(ChannelBuffer buf, HttpMessage message) protected voidRtspResponseEncoder.encodeInitialLine(ChannelBuffer buf, HttpMessage message) -
Uses of ChannelBuffer in org.jboss.netty.handler.codec.serialization
Methods in org.jboss.netty.handler.codec.serialization that return ChannelBufferModifier and TypeMethodDescriptionprotected ChannelBufferObjectDecoder.extractFrame(ChannelBuffer buffer, int index, int length) Methods in org.jboss.netty.handler.codec.serialization with parameters of type ChannelBufferModifier and TypeMethodDescriptionprotected ObjectObjectDecoder.decode(ChannelHandlerContext ctx, Channel channel, ChannelBuffer buffer) protected ChannelBufferObjectDecoder.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 ObjectSocksAuthRequestDecoder.decode(ChannelHandlerContext ctx, Channel channel, ChannelBuffer buffer, org.jboss.netty.handler.codec.socks.SocksAuthRequestDecoder.State state) protected ObjectSocksAuthResponseDecoder.decode(ChannelHandlerContext ctx, Channel channel, ChannelBuffer buffer, SocksAuthResponseDecoder.State state) protected ObjectSocksCmdRequestDecoder.decode(ChannelHandlerContext ctx, Channel channel, ChannelBuffer buffer, org.jboss.netty.handler.codec.socks.SocksCmdRequestDecoder.State state) protected ObjectSocksCmdResponseDecoder.decode(ChannelHandlerContext ctx, Channel channel, ChannelBuffer buffer, SocksCmdResponseDecoder.State state) protected ObjectSocksInitRequestDecoder.decode(ChannelHandlerContext ctx, Channel channel, ChannelBuffer buffer, org.jboss.netty.handler.codec.socks.SocksInitRequestDecoder.State state) protected ObjectSocksInitResponseDecoder.decode(ChannelHandlerContext ctx, Channel channel, ChannelBuffer buffer, SocksInitResponseDecoder.State state) voidSocksAuthRequest.encodeAsByteBuf(ChannelBuffer channelBuffer) voidSocksAuthResponse.encodeAsByteBuf(ChannelBuffer channelBuffer) voidSocksCmdRequest.encodeAsByteBuf(ChannelBuffer channelBuffer) voidSocksCmdResponse.encodeAsByteBuf(ChannelBuffer channelBuffer) voidSocksInitRequest.encodeAsByteBuf(ChannelBuffer channelBuffer) voidSocksInitResponse.encodeAsByteBuf(ChannelBuffer channelBuffer) abstract voidSocksMessage.encodeAsByteBuf(ChannelBuffer channelBuffer) Encode socks message into its byte representation and write it into byteBufvoidUnknownSocksMessage.encodeAsByteBuf(ChannelBuffer byteBuf) voidUnknownSocksRequest.encodeAsByteBuf(ChannelBuffer buffer) voidUnknownSocksResponse.encodeAsByteBuf(ChannelBuffer buffer) -
Uses of ChannelBuffer in org.jboss.netty.handler.codec.spdy
Methods in org.jboss.netty.handler.codec.spdy that return ChannelBufferModifier and TypeMethodDescriptionSpdyHeaderBlockRawEncoder.encode(SpdyHeadersFrame headerFrame) 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 TypeMethodDescriptionprotected ObjectSpdyFrameCodec.decode(ChannelHandlerContext ctx, Channel channel, ChannelBuffer buffer) voidSpdyFrameDecoder.decode(ChannelBuffer buffer) protected voidSpdyHeaderBlockRawDecoder.decodeHeaderBlock(ChannelBuffer headerBlock, SpdyHeadersFrame frame) 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) voidSpdyFrameCodec.readDataFrame(int streamId, boolean last, ChannelBuffer data) voidSpdyFrameDecoderDelegate.readDataFrame(int streamId, boolean last, ChannelBuffer data) Called when a DATA frame is received.voidSpdyFrameCodec.readHeaderBlock(ChannelBuffer headerBlock) voidSpdyFrameDecoderDelegate.readHeaderBlock(ChannelBuffer headerBlock) Called when the header block within a SYN_STREAM, SYN_REPLY, or HEADERS frame is received.voidDefaultSpdyDataFrame.setData(ChannelBuffer data) voidSpdyDataFrame.setData(ChannelBuffer data) Sets the data payload of this frame. -
Uses of ChannelBuffer in org.jboss.netty.handler.ssl
Methods in org.jboss.netty.handler.ssl with parameters of type ChannelBufferModifier and TypeMethodDescriptionprotected ObjectSslHandler.decode(ChannelHandlerContext ctx, Channel channel, ChannelBuffer in) static booleanSslHandler.isEncrypted(ChannelBuffer buffer) Returnstrueif the givenChannelBufferis encrypted.