Package com.mongodb
Class LazyDBDecoder
- java.lang.Object
-
- org.bson.LazyBSONDecoder
-
- com.mongodb.LazyDBDecoder
-
- All Implemented Interfaces:
DBDecoder
,BSONDecoder
@Deprecated(since="2021-05-27") public class LazyDBDecoder extends LazyBSONDecoder implements DBDecoder
Deprecated.Usage of this API is not supported in AEM as a Cloud Service.A decoder forLazyDBObject
instances.
-
-
Field Summary
Fields Modifier and Type Field Description static DBDecoderFactory
FACTORY
Deprecated.
-
Constructor Summary
Constructors Constructor Description LazyDBDecoder()
Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description DBObject
decode(byte[] bytes, DBCollection collection)
Deprecated.Decode a single DBObject belonging to the given collection from the given array of bytes.DBObject
decode(InputStream input, DBCollection collection)
Deprecated.Decode a single DBObject belonging to the given collection from the given input stream.DBCallback
getDBCallback(DBCollection collection)
Deprecated.Get a callback for the given collection.DBObject
readObject(InputStream in)
Deprecated.Read a single BSON object from the given input stream.-
Methods inherited from class org.bson.LazyBSONDecoder
decode, decode, readObject
-
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.bson.BSONDecoder
decode, decode, readObject
-
-
-
-
Field Detail
-
FACTORY
public static final DBDecoderFactory FACTORY
Deprecated.
-
-
Method Detail
-
getDBCallback
public DBCallback getDBCallback(@Nullable DBCollection collection)
Deprecated.Description copied from interface:DBDecoder
Get a callback for the given collection.- Specified by:
getDBCallback
in interfaceDBDecoder
- Parameters:
collection
- the collection- Returns:
- the callback
-
readObject
public DBObject readObject(InputStream in) throws IOException
Deprecated.Description copied from interface:BSONDecoder
Read a single BSON object from the given input stream.- Specified by:
readObject
in interfaceBSONDecoder
- Overrides:
readObject
in classLazyBSONDecoder
- Parameters:
in
- the input stream in BSON format- Returns:
- the BSON object for the given bytes
- Throws:
IOException
- if there's a problem reading the object from theInputStream
-
decode
public DBObject decode(InputStream input, DBCollection collection) throws IOException
Deprecated.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
public DBObject decode(byte[] bytes, DBCollection collection)
Deprecated.Description copied from interface:DBDecoder
Decode a single DBObject belonging to the given collection from the given array of bytes.
-
-