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