|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.beadsproject.beads.data.BufferFactory
public abstract class BufferFactory
Abstract base class for factories that generate Buffer
s. Create subclasses of BufferFactory to generate different types of Buffer
.
Buffer
Field Summary | |
---|---|
static int |
DEFAULT_BUFFER_SIZE
The Constant DEFAULT_BUFFER_SIZE. |
Constructor Summary | |
---|---|
BufferFactory()
|
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int DEFAULT_BUFFER_SIZE
Constructor Detail |
---|
public BufferFactory()
Method Detail |
---|
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.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |