Package org.bson
Class BsonBinaryReader
java.lang.Object
org.bson.AbstractBsonReader
org.bson.BsonBinaryReader
- All Implemented Interfaces:
Closeable,AutoCloseable,BsonReader
Deprecated.
Usage of this API is not supported in AEM as a Cloud Service.
A BsonReader implementation that reads from a binary stream of data. This is the most commonly used implementation.
- Since:
- 3.0
-
Nested Class Summary
Nested classes/interfaces inherited from class org.bson.AbstractBsonReader
AbstractBsonReader.State -
Constructor Summary
ConstructorsConstructorDescriptionBsonBinaryReader(ByteBuffer byteBuffer) Deprecated.Construct an instance.BsonBinaryReader(BsonInput bsonInput) Deprecated.Construct an instance. -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()Deprecated.Closes the reader.Deprecated.voidDeprecated.Deprecated.Gets the BSON input backing this instance.getMark()Deprecated.Gets a mark representing the current state of the reader.voidmark()Deprecated.Deprecated.Reads a BSONType from the reader.voidreset()Deprecated.Methods inherited from class org.bson.AbstractBsonReader
getCurrentBsonType, getCurrentName, getState, peekBinarySize, peekBinarySubType, readBinaryData, readBinaryData, readBoolean, readBoolean, readDateTime, readDateTime, readDBPointer, readDBPointer, readDecimal128, readDecimal128, readDouble, readDouble, readEndArray, readEndDocument, readInt32, readInt32, readInt64, readInt64, readJavaScript, readJavaScript, readJavaScriptWithScope, readJavaScriptWithScope, readMaxKey, readMaxKey, readMinKey, readMinKey, readName, readName, readNull, readNull, readObjectId, readObjectId, readRegularExpression, readRegularExpression, readStartArray, readStartDocument, readString, readString, readSymbol, readSymbol, readTimestamp, readTimestamp, readUndefined, readUndefined, skipName, skipValue
-
Constructor Details
-
BsonBinaryReader
Deprecated.Construct an instance.- Parameters:
byteBuffer- the input for this reader
-
BsonBinaryReader
Deprecated.Construct an instance.- Parameters:
bsonInput- the input for this reader
-
-
Method Details
-
close
public void close()Deprecated.Description copied from class:AbstractBsonReaderCloses the reader.- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceBsonReader- Specified by:
closein interfaceCloseable- Overrides:
closein classAbstractBsonReader
-
getBsonInput
Deprecated.Gets the BSON input backing this instance.- Returns:
- the BSON input
-
readBsonType
Deprecated.Description copied from interface:BsonReaderReads a BSONType from the reader.- Specified by:
readBsonTypein interfaceBsonReader- Specified by:
readBsonTypein classAbstractBsonReader- Returns:
- A BSONType.
-
doReadDecimal128
Deprecated. -
doReadStartArray
public void doReadStartArray()Deprecated. -
mark
Deprecated.Description copied from interface:BsonReaderCreates a bookmark in the BsonReader's input The previous mark must be cleared before creating a new one -
getMark
Deprecated.Description copied from interface:BsonReaderGets a mark representing the current state of the reader.- Returns:
- the mark
-
reset
Deprecated.Description copied from interface:BsonReaderGo back to the state at the last mark and removes the mark
-