|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectObjectBuffer
public class ObjectBuffer
A wraper class to java.nio.ByteBuffer for handling objects. The internal ByteBuffer is used for storing and retrieving objects. The ByteBuffer may be direct or a heap buffer. There are no bulk get / put methods since an object array can also be get / put as single object.
Field Summary | |
---|---|
private java.nio.ByteBuffer |
bb
|
Constructor Summary | |
---|---|
ObjectBuffer(java.nio.ByteBuffer bb)
Wrap an existing ByteBuffer as Object Buffer. |
Method Summary | |
---|---|
java.lang.Object |
get()
Get and remove the next Object form the ByteBuffer. |
void |
put(java.lang.Object obj)
Put an Object to the ByteBuffer. |
java.lang.String |
toString()
to String |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
private java.nio.ByteBuffer bb
Constructor Detail |
---|
public ObjectBuffer(java.nio.ByteBuffer bb)
Method Detail |
---|
public java.lang.Object get() throws java.io.IOException, java.lang.ClassNotFoundException
java.io.IOException
java.lang.ClassNotFoundException
public void put(java.lang.Object obj) throws java.io.IOException
obj
- the object to be put into the buffer.
java.io.IOException
public java.lang.String toString()
toString
in class java.lang.Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |