org.apache.mina.common
Class FixedSizeByteBufferAllocator

java.lang.Object
  extended by org.apache.mina.common.FixedSizeByteBufferAllocator
All Implemented Interfaces:
org.apache.mina.common.ByteBufferAllocator

public class FixedSizeByteBufferAllocator
extends Object
implements org.apache.mina.common.ByteBufferAllocator


Constructor Summary
FixedSizeByteBufferAllocator()
           
 
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
 

Constructor Detail

FixedSizeByteBufferAllocator

public FixedSizeByteBufferAllocator()
Method Detail

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