
public interface ChannelBufferFactory
ChannelBuffers.| Modifier and Type | Method and Description |
|---|---|
ChannelBuffer |
getBuffer(ByteOrder endianness,
int capacity)
|
ChannelBuffer |
getBuffer(int capacity)
Returns a
ChannelBuffer with the specified capacity. |
ByteOrder |
getDefaultOrder()
Returns the default endianness of the
ChannelBuffer which is
returned by getBuffer(int). |
ChannelBuffer getBuffer(int capacity)
ChannelBuffer with the specified capacity.
This method is identical to getBuffer(getDefaultOrder(), capacity).capacity - the capacity of the returned ChannelBufferChannelBuffer with the specified capacity,
whose readerIndex and writerIndex are 0ChannelBuffer getBuffer(ByteOrder endianness, int capacity)
endianness - the endianness of the returned ChannelBuffercapacity - the capacity of the returned ChannelBufferChannelBuffer with the specified endianness and
capacity, whose readerIndex and writerIndex
are 0ByteOrder getDefaultOrder()
ChannelBuffer which is
returned by getBuffer(int).ChannelBuffer which is
returned by getBuffer(int)Copyright © 2008-2013 JBoss, by Red Hat. All Rights Reserved.