Package org.apache.http.nio.util
Interface ByteBufferAllocator
- All Known Implementing Classes:
DirectByteBufferAllocator,HeapByteBufferAllocator
public interface ByteBufferAllocator
Abstract interface to allocate
ByteBuffer instances.- Since:
- 4.0
-
Method Summary
-
Method Details
-
allocate
AllocatesByteBufferof the given size.- Parameters:
size- the size of the buffer.- Returns:
- byte buffer.
-