public class

HeapByteBufferAllocator

extends Object
implements ByteBufferAllocator
java.lang.Object
   ↳ org.apache.http.nio.util.HeapByteBufferAllocator

Class Overview

Allocates ByteBuffer instances using allocate(int).

Summary

Public Constructors
HeapByteBufferAllocator()
Public Methods
ByteBuffer allocate(int size)
Allocates ByteBuffer of the given size.
[Expand]
Inherited Methods
From class java.lang.Object
From interface org.apache.http.nio.util.ByteBufferAllocator

Public Constructors

public HeapByteBufferAllocator ()

Public Methods

public ByteBuffer allocate (int size)

Allocates ByteBuffer of the given size.

Parameters
size the size of the buffer.
Returns
  • byte buffer.