public abstract class ByteBufferFactory extends Object
ByteBuffers.| Modifier and Type | Field and Description |
|---|---|
static ByteBufferFactory |
BIG_ENDIAN_HEAP_BYTEBUFFER_FACTORY
ByteBufferFactory, that creates
ByteBuffer that have ByteOrder.BIG_ENDIAN. |
static ByteBufferFactory |
DEFAULT_ENDIAN_HEAP_BYTEBUFFER_FACTORY
Deprecated.
use of this factory is most likely an error, as order should always be clearly
defined.
|
static ByteBufferFactory |
LITTLE_ENDIAN_HEAP_BYTEBUFFER_FACTORY
ByteBufferFactory, that creates
ByteBuffer that have ByteOrder.LITTLE_ENDIAN. |
| Constructor and Description |
|---|
ByteBufferFactory() |
| Modifier and Type | Method and Description |
|---|---|
abstract ByteBuffer |
allocate(int capacity)
Creates a
ByteBuffer with the given capacity. |
@Deprecated public static final ByteBufferFactory DEFAULT_ENDIAN_HEAP_BYTEBUFFER_FACTORY
ByteBuffer that have the platforms native ordering (
ByteOrder.nativeOrder().public static final ByteBufferFactory LITTLE_ENDIAN_HEAP_BYTEBUFFER_FACTORY
ByteBuffer that have ByteOrder.LITTLE_ENDIAN.public static final ByteBufferFactory BIG_ENDIAN_HEAP_BYTEBUFFER_FACTORY
ByteBuffer that have ByteOrder.BIG_ENDIAN.public abstract ByteBuffer allocate(int capacity)
ByteBuffer with the given capacity.Copyright © 2026. All rights reserved.