Package org.apache.http.nio.util
Interface ByteBufferAllocator
-
- All Known Implementing Classes:
DirectByteBufferAllocator,HeapByteBufferAllocator
public interface ByteBufferAllocatorAbstract interface to allocateByteBufferinstances.- Since:
- 4.0
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ByteBufferallocate(int size)AllocatesByteBufferof the given size.
-
-
-
Method Detail
-
allocate
ByteBuffer allocate(int size)
AllocatesByteBufferof the given size.- Parameters:
size- the size of the buffer.- Returns:
- byte buffer.
-
-