Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## 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
`ByteBuffer` | `allocate(int size)` Allocates `ByteBuffer` of the given size.

Method Detail

### allocate

    ByteBuffer allocate(int size)

  Allocates `ByteBuffer` of the given size.

  Parameters:
    `size` - the size of the buffer.
  Returns:
    byte buffer.

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright © 2005–2021 The Apache Software Foundation. All rights reserved.