|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sf.asyncobjects.io.DefaultBufferProvider
public class DefaultBufferProvider
A default buffer provider. It keeps buffers in itself.
Constructor Summary | |
---|---|
DefaultBufferProvider(int byteBufferSize,
int charBufferSize)
A default constructor |
Method Summary | |
---|---|
ByteBuffer |
getByteBuffer()
|
CharBuffer |
getCharBuffer()
|
void |
returnByteBuffer(ByteBuffer buffer)
Return the buffer |
void |
returnCharBuffer(CharBuffer buffer)
Return the buffer |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DefaultBufferProvider(int byteBufferSize, int charBufferSize)
byteBufferSize
- byte buffer sizecharBufferSize
- character buffer sizeMethod Detail |
---|
public ByteBuffer getByteBuffer()
getByteBuffer
in interface BufferProvider
BufferProvider.getByteBuffer()
public CharBuffer getCharBuffer()
getCharBuffer
in interface BufferProvider
BufferProvider.getCharBuffer()
public void returnByteBuffer(ByteBuffer buffer)
BufferProvider
returnByteBuffer
in interface BufferProvider
buffer
- a buffer recieved with BufferProvider.getByteBuffer()
BufferProvider.returnByteBuffer(java.nio.ByteBuffer)
public void returnCharBuffer(CharBuffer buffer)
BufferProvider
returnCharBuffer
in interface BufferProvider
buffer
- a buffer recieved with BufferProvider.getCharBuffer()
BufferProvider.returnCharBuffer(java.nio.CharBuffer)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |