Package org.bson
Interface BSONDecoder
-
- All Known Subinterfaces:
DBDecoder
- All Known Implementing Classes:
BasicBSONDecoder,DefaultDBDecoder,LazyBSONDecoder,LazyDBDecoder
@Deprecated(since="2022-10-31") public interface BSONDecoderDeprecated.Usage of this API is not supported in AEM as a Cloud Service.An interface for decoders of BSON documents.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description intdecode(byte[] bytes, BSONCallback callback)Deprecated.Decode a single BSON object into the given callback from the given byte array.intdecode(java.io.InputStream in, BSONCallback callback)Deprecated.Decode a single BSON object into the given callback from the given input stream.BSONObjectreadObject(byte[] bytes)Deprecated.Read a single BSON object from the given bytes.BSONObjectreadObject(java.io.InputStream in)Deprecated.Read a single BSON object from the given input stream.
-
-
-
Method Detail
-
readObject
BSONObject readObject(byte[] bytes)
Deprecated.Read a single BSON object from the given bytes.- Parameters:
bytes- the bytes in BSON format- Returns:
- the BSON object for the given bytes
-
readObject
BSONObject readObject(java.io.InputStream in) throws java.io.IOException
Deprecated.Read a single BSON object from the given input stream.- Parameters:
in- the input stream in BSON format- Returns:
- the BSON object for the given bytes
- Throws:
java.io.IOException- if there's a problem reading the object from theInputStream
-
decode
int decode(byte[] bytes, BSONCallback callback)Deprecated.Decode a single BSON object into the given callback from the given byte array.- Parameters:
bytes- the bytes in BSON formatcallback- the callback- Returns:
- the number of bytes in the BSON object
-
decode
int decode(java.io.InputStream in, BSONCallback callback) throws java.io.IOExceptionDeprecated.Decode a single BSON object into the given callback from the given input stream.- Parameters:
in- the input stream in BSON formatcallback- the callback- Returns:
- the number of bytes read from the input stream
- Throws:
java.io.IOException- if there's a problem reading from theInputStream
-
-