public abstract class BufferFactory
extends java.lang.Object
Buffers. Create subclasses of BufferFactory to generate different types of Buffer.Buffer| Modifier and Type | Field and Description |
|---|---|
static int |
DEFAULT_BUFFER_SIZE
The Constant DEFAULT_BUFFER_SIZE.
|
| Constructor and Description |
|---|
BufferFactory() |
| Modifier and Type | Method and Description |
|---|---|
abstract Buffer |
generateBuffer(int bufferSize)
Subclasses should override this method to generate a
Buffer of the specified size. |
Buffer |
getDefault()
Generates a buffer using
DEFAULT_BUFFER_SIZE and the BufferFactory's default name. |
abstract java.lang.String |
getName()
Subclasses should override this method to generate a name.
|
public static final int DEFAULT_BUFFER_SIZE
public abstract Buffer generateBuffer(int bufferSize)
Buffer of the specified size.bufferSize - the buffer size.public abstract java.lang.String getName()
getDefault() is called.public final Buffer getDefault()
DEFAULT_BUFFER_SIZE and the BufferFactory's default name.