Package org.bson
Class LazyBSONDecoder
java.lang.Object
org.bson.LazyBSONDecoder
- All Implemented Interfaces:
BSONDecoder
- Direct Known Subclasses:
LazyDBDecoder
Deprecated.
Usage of this API is not supported in AEM as a Cloud Service.
A decoder for
LazyBSONObject instances.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintdecode(byte[] bytes, BSONCallback callback) Deprecated.Decode a single BSON object into the given callback from the given byte array.intdecode(InputStream in, BSONCallback callback) Deprecated.Decode a single BSON object into the given callback from the given input stream.readObject(byte[] bytes) Deprecated.Read a single BSON object from the given bytes.Deprecated.Read a single BSON object from the given input stream.
-
Constructor Details
-
LazyBSONDecoder
public LazyBSONDecoder()Deprecated.
-
-
Method Details
-
readObject
Deprecated.Description copied from interface:BSONDecoderRead a single BSON object from the given bytes.- Specified by:
readObjectin interfaceBSONDecoder- Parameters:
bytes- the bytes in BSON format- Returns:
- the BSON object for the given bytes
-
readObject
Deprecated.Description copied from interface:BSONDecoderRead a single BSON object from the given input stream.- Specified by:
readObjectin interfaceBSONDecoder- 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
Deprecated.Description copied from interface:BSONDecoderDecode a single BSON object into the given callback from the given byte array.- Specified by:
decodein interfaceBSONDecoder- Parameters:
bytes- the bytes in BSON formatcallback- the callback- Returns:
- the number of bytes in the BSON object
-
decode
Deprecated.Description copied from interface:BSONDecoderDecode a single BSON object into the given callback from the given input stream.- Specified by:
decodein interfaceBSONDecoder- Parameters:
in- the input stream in BSON formatcallback- the callback- Returns:
- the number of bytes read from the input stream
- Throws:
IOException- if there's a problem reading from theInputStream
-