|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.ogf.saga.buffer.BufferFactory
public abstract class BufferFactory
Factory for creating buffers.
Constructor Summary | |
---|---|
BufferFactory()
|
Method Summary | |
---|---|
static Buffer |
createBuffer()
Creates a (implementation-managed) buffer. |
static Buffer |
createBuffer(byte[] data)
Creates a (application-allocated) buffer. |
static Buffer |
createBuffer(int size)
Creates a (implementation-managed) buffer of the specified size. |
static Buffer |
createBuffer(String sagaFactoryClassname)
Creates a (implementation-managed) buffer. |
static Buffer |
createBuffer(String sagaFactoryClassname,
byte[] data)
Creates a (application-allocated) buffer. |
static Buffer |
createBuffer(String sagaFactoryClassname,
int size)
Creates a (implementation-managed) buffer of the specified size. |
protected abstract Buffer |
doCreateBuffer(byte[] data)
Creates a buffer. |
protected abstract Buffer |
doCreateBuffer(int size)
Creates a buffer. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public BufferFactory()
Method Detail |
---|
protected abstract Buffer doCreateBuffer(byte[] data) throws BadParameterException, NoSuccessException
data
- the storage.
BadParameterException
NoSuccessException
protected abstract Buffer doCreateBuffer(int size) throws BadParameterException, NoSuccessException
size
- the size of the buffer.
BadParameterException
NoSuccessException
public static Buffer createBuffer(byte[] data) throws BadParameterException, NoSuccessException
data
- the storage.
NoSuccessException
- is thrown when the operation was not successfully performed,
and none of the other exceptions apply.
BadParameterException
- is thrown when the implementation cannot handle the specified data buffer.public static Buffer createBuffer(String sagaFactoryClassname, byte[] data) throws BadParameterException, NoSuccessException
sagaFactoryClassname
- the class name of the Saga factory to be used.data
- the storage.
NoSuccessException
- is thrown when the operation was not successfully performed,
and none of the other exceptions apply.
BadParameterException
- is thrown when the implementation cannot handle the specified data buffer.public static Buffer createBuffer(int size) throws BadParameterException, NoSuccessException
size
- the size.
NoSuccessException
- is thrown when the operation was not successfully performed,
and none of the other exceptions apply.
BadParameterException
- is thrown when the implementation cannot handle the specified size.public static Buffer createBuffer(String sagaFactoryClassname, int size) throws BadParameterException, NoSuccessException
sagaFactoryClassname
- the class name of the Saga factory to be used.size
- the size.
NoSuccessException
- is thrown when the operation was not successfully performed,
and none of the other exceptions apply.
BadParameterException
- is thrown when the implementation cannot handle the specified size.public static Buffer createBuffer() throws BadParameterException, NoSuccessException
NoSuccessException
- is thrown when the operation was not successfully performed,
and none of the other exceptions apply.
BadParameterException
- is thrown when the defaults are not suitable.public static Buffer createBuffer(String sagaFactoryClassname) throws BadParameterException, NoSuccessException
sagaFactoryClassname
- the class name of the Saga factory to be used.
NoSuccessException
- is thrown when the operation was not successfully performed,
and none of the other exceptions apply.
BadParameterException
- is thrown when the defaults are not suitable.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |