org.gudy.azureus2.pluginsimpl.local.utils
Class PooledByteBufferImpl
java.lang.Object
org.gudy.azureus2.pluginsimpl.local.utils.PooledByteBufferImpl
- All Implemented Interfaces:
- PooledByteBuffer
public class PooledByteBufferImpl
- extends Object
- implements PooledByteBuffer
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PooledByteBufferImpl
public PooledByteBufferImpl(DirectByteBuffer _buffer)
PooledByteBufferImpl
public PooledByteBufferImpl(int size)
PooledByteBufferImpl
public PooledByteBufferImpl(byte[] data)
PooledByteBufferImpl
public PooledByteBufferImpl(byte[] data,
int offset,
int length)
toByteArray
public byte[] toByteArray()
- Specified by:
toByteArray
in interface PooledByteBuffer
toByteBuffer
public ByteBuffer toByteBuffer()
- Specified by:
toByteBuffer
in interface PooledByteBuffer
toMap
public Map toMap()
throws IOException
- Description copied from interface:
PooledByteBuffer
- Data must be b-encoded...
- Specified by:
toMap
in interface PooledByteBuffer
- Returns:
-
- Throws:
IOException
getBuffer
public DirectByteBuffer getBuffer()
returnToPool
public void returnToPool()
- Specified by:
returnToPool
in interface PooledByteBuffer