public class BsonDocumentReader extends AbstractBsonReader
BsonReader
implementation that reads from an instance of BsonDocument
. This can be used to decode a BsonDocument
using a Decoder
.BsonDocument
,
Decoder
AbstractBsonReader.State
Constructor and Description |
---|
BsonDocumentReader(BsonDocument document)
Construct a new instance.
|
Modifier and Type | Method and Description |
---|---|
Decimal128 |
doReadDecimal128()
Handles the logic to read Decimal128
|
BsonReaderMark |
getMark()
Gets a mark representing the current state of the reader.
|
void |
mark()
Deprecated.
|
BsonType |
readBsonType()
Reads a BSONType from the reader.
|
void |
reset()
Go back to the state at the last mark and removes the mark
|
close, 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
public BsonDocumentReader(BsonDocument document)
document
- the document to read frompublic Decimal128 doReadDecimal128()
AbstractBsonReader
public BsonType readBsonType()
BsonReader
readBsonType
in interface BsonReader
readBsonType
in class AbstractBsonReader
@Deprecated public void mark()
BsonReader
public BsonReaderMark getMark()
BsonReader
public void reset()
BsonReader
Copyright © 2010 - 2020 Adobe. All Rights Reserved