org.apache.mina.common
Class FixedSizeByteBufferAllocator
java.lang.Object
org.apache.mina.common.FixedSizeByteBufferAllocator
- All Implemented Interfaces:
- org.apache.mina.common.ByteBufferAllocator
public class FixedSizeByteBufferAllocator
- extends Object
- implements org.apache.mina.common.ByteBufferAllocator
Method Summary |
org.apache.mina.common.ByteBuffer |
allocate(int capacity,
boolean direct)
|
void |
dispose()
|
org.apache.mina.common.ByteBuffer |
wrap(ByteBuffer nioBuffer)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FixedSizeByteBufferAllocator
public FixedSizeByteBufferAllocator()
allocate
public org.apache.mina.common.ByteBuffer allocate(int capacity,
boolean direct)
- Specified by:
allocate
in interface org.apache.mina.common.ByteBufferAllocator
wrap
public org.apache.mina.common.ByteBuffer wrap(ByteBuffer nioBuffer)
- Specified by:
wrap
in interface org.apache.mina.common.ByteBufferAllocator
dispose
public void dispose()
- Specified by:
dispose
in interface org.apache.mina.common.ByteBufferAllocator
Licensed to the Apache Software Foundation