public class ByteBufferFactory extends Object
Constructor and Description |
---|
ByteBufferFactory() |
Modifier and Type | Method and Description |
---|---|
ByteBuffer |
allocate(int capacity) |
ByteBuffer |
allocateDirect(int capacity) |
static ByteBufferFactory |
getInstance() |
void |
setUseDirect(boolean useDirect) |
public static ByteBufferFactory getInstance()
public ByteBuffer allocateDirect(int capacity)
public ByteBuffer allocate(int capacity)
public void setUseDirect(boolean useDirect)
Copyright © 2017. All Rights Reserved.