Package com.mongodb
Class DefaultDBDecoder
java.lang.Object
org.bson.BasicBSONDecoder
com.mongodb.DefaultDBDecoder
- All Implemented Interfaces:
DBDecoder
,BSONDecoder
An implementation of DBDecoder
-
Field Summary
Modifier and TypeFieldDescriptionstatic final DBDecoderFactory
TheDBDecoderFactory
forDefaultDBDecoder
instances. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiondecode
(byte[] bytes, DBCollection collection) Decode a single DBObject belonging to the given collection from the given array of bytes.decode
(InputStream input, DBCollection collection) Decode a single DBObject belonging to the given collection from the given input stream.getDBCallback
(DBCollection collection) Get a callback for the given collection.toString()
Methods inherited from class org.bson.BasicBSONDecoder
decode, decode, readObject, readObject
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.bson.BSONDecoder
decode, decode, readObject, readObject
-
Field Details
-
FACTORY
TheDBDecoderFactory
forDefaultDBDecoder
instances.
-
-
Constructor Details
-
DefaultDBDecoder
public DefaultDBDecoder()
-
-
Method Details
-
getDBCallback
Description copied from interface:DBDecoder
Get a callback for the given collection.- Specified by:
getDBCallback
in interfaceDBDecoder
- Parameters:
collection
- the collection- Returns:
- the callback
-
decode
Description copied from interface:DBDecoder
Decode a single DBObject belonging to the given collection from the given input stream.- Specified by:
decode
in interfaceDBDecoder
- Parameters:
input
- the input streamcollection
- the collection- Returns:
- the DBObject
- Throws:
IOException
- may throw an exception while decoding from theInputStream
-
decode
Description copied from interface:DBDecoder
Decode a single DBObject belonging to the given collection from the given array of bytes. -
toString
-