public interface

ByteBufferAllocator

org.apache.http.nio.util.ByteBufferAllocator
Known Indirect Subclasses

Class Overview

Abstract interface to allocate ByteBuffer instances.

Summary

Public Methods
abstract ByteBuffer allocate(int size)
Allocates ByteBuffer of the given size.

Public Methods

public abstract ByteBuffer allocate (int size)

Allocates ByteBuffer of the given size.

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