|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object m.c.m.proxyma.buffers.ByteBufferFactory
public class ByteBufferFactory
This class is the factory for the ByteBuffers implementations and allows
the users to change the buffers implementation as needed.
Note: The configration is valid for a single context.
NOTE: this software is released under GPL License. See the LICENSE of this distribution for more informations.
Constructor Summary | |
---|---|
ByteBufferFactory()
|
Method Summary | |
---|---|
static ByteBuffer |
createNewByteBuffer(ProxymaContext context)
Creates a new instance of a ByteBuffer implementation. |
static ByteBufferReader |
createNewByteBufferReader(ByteBuffer theDataToRead)
Creates a new instance of a ByteBufferReader implementation. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ByteBufferFactory()
Method Detail |
---|
public static ByteBuffer createNewByteBuffer(ProxymaContext context) throws java.lang.IllegalArgumentException, java.lang.ClassNotFoundException, java.lang.InstantiationException, java.lang.IllegalAccessException, java.lang.reflect.InvocationTargetException, java.lang.NoSuchMethodException
context
- the context where to find the configuration data.
java.lang.IllegalArgumentException
- if the class is not a ByteBuffer implementation
java.lang.ClassNotFoundException
- if the class is not found
java.lang.InstantiationException
- if the object can't be instantiated
java.lang.IllegalAccessException
- if there is an access violation.
java.lang.reflect.InvocationTargetException
java.lang.NoSuchMethodException
public static ByteBufferReader createNewByteBufferReader(ByteBuffer theDataToRead) throws java.lang.IllegalArgumentException, java.lang.ClassNotFoundException, java.lang.InstantiationException, java.lang.IllegalAccessException, java.lang.reflect.InvocationTargetException
context
- the context where to find the configuration data.
java.lang.IllegalArgumentException
- if the class is not a ByteBuffer implementation
java.lang.ClassNotFoundException
- if the class is not found
java.lang.InstantiationException
- if the object can't be instantiated
java.lang.IllegalAccessException
- if there is an access violation.
java.lang.reflect.InvocationTargetException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |