|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.mongodb.Bytes
com.mongodb.ByteDecoder
public class ByteDecoder
Deserializes a string from the database into a DBObject
.
Field Summary |
---|
Fields inherited from class com.mongodb.Bytes |
---|
_utf8, MAX_STRING, ORDER, QUERYOPTION_NOTIMEOUT, QUERYOPTION_OPLOGREPLAY, QUERYOPTION_SLAVEOK, QUERYOPTION_TAILABLE |
Constructor Summary | |
---|---|
ByteDecoder(ByteBuffer buf)
|
Method Summary | |
---|---|
protected int |
decodeNext(DBObject o,
String path)
Decodes the serialized object into the given DBObject . |
protected void |
done()
Returns this decoder to the pool. |
protected static ByteDecoder |
get(DB base,
DBCollection coll)
Gets a new ByteDecoder from the pool. |
DBObject |
readObject()
Decode an object. |
void |
reset(ByteBuffer buf)
Returns this decoder to its starting state with a new ByteBuffer to decode. |
Methods inherited from class com.mongodb.Bytes |
---|
addDecodingHook, addEncodingHook, applyDecodingHooks, applyEncodingHooks, clearAllHooks, decode, encode, getFlag, getType, patternFlags, patternFlags |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ByteDecoder(ByteBuffer buf)
Method Detail |
---|
protected static ByteDecoder get(DB base, DBCollection coll)
ByteDecoder
from the pool.
base
- the databasecoll
- the collection
ByteDecoder
protected void done()
public void reset(ByteBuffer buf)
ByteBuffer
to decode.
buf
- new ByteBuffer
public DBObject readObject()
protected int decodeNext(DBObject o, String path)
DBObject
.
o
- object to which to add fields
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |