public interface ChannelBufferFactory
ChannelBuffer
s.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 ChannelBuffer
ChannelBuffer
with the specified capacity
,
whose readerIndex
and writerIndex
are 0
ChannelBuffer getBuffer(ByteOrder endianness, int capacity)
endianness
- the endianness of the returned ChannelBuffer
capacity
- the capacity of the returned ChannelBuffer
ChannelBuffer
with the specified endianness
and
capacity
, whose readerIndex
and writerIndex
are 0
ByteOrder 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.