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| 限定符和类型 | 类和说明 |
|---|---|
protected class |
BsonDocumentReader.Context |
protected class |
BsonDocumentReader.Mark |
AbstractBsonReader.State| 构造器和说明 |
|---|
BsonDocumentReader(BsonDocument document)
Construct a new instance.
|
| 限定符和类型 | 方法和说明 |
|---|---|
protected byte |
doPeekBinarySubType()
Handles the logic to peek at the binary subtype.
|
protected BsonBinary |
doReadBinaryData()
Handles the logic to read binary data
|
protected boolean |
doReadBoolean()
Handles the logic to read booleans
|
protected long |
doReadDateTime()
Handles the logic to read date time
|
protected BsonDbPointer |
doReadDBPointer()
Handles the logic to read a DBPointer
|
protected double |
doReadDouble()
Handles the logic to read doubles
|
protected void |
doReadEndArray()
Handles the logic when reading the end of an array
|
protected void |
doReadEndDocument()
Handles the logic when reading the end of a document
|
protected int |
doReadInt32()
Handles the logic to read 32 bit ints
|
protected long |
doReadInt64()
Handles the logic to read 64 bit ints
|
protected java.lang.String |
doReadJavaScript()
Handles the logic to read Javascript functions
|
protected java.lang.String |
doReadJavaScriptWithScope()
Handles the logic to read scoped Javascript functions
|
protected void |
doReadMaxKey()
Handles the logic to read a Max key
|
protected void |
doReadMinKey()
Handles the logic to read a Min key
|
protected void |
doReadNull()
Handles the logic to read a null value
|
protected ObjectId |
doReadObjectId()
Handles the logic to read an ObjectId
|
protected BsonRegularExpression |
doReadRegularExpression()
Handles the logic to read a regular expression
|
protected void |
doReadStartArray()
Handles the logic to read the start of an array
|
protected void |
doReadStartDocument()
Handles the logic to read the start of a document
|
protected java.lang.String |
doReadString()
Handles the logic to read a String
|
protected java.lang.String |
doReadSymbol()
Handles the logic to read a Symbol
|
protected BsonTimestamp |
doReadTimestamp()
Handles the logic to read a timestamp
|
protected void |
doReadUndefined()
Handles the logic to read an Undefined value
|
protected void |
doSkipName()
Handles any logic required to skip the name (reader must be positioned on a name).
|
protected void |
doSkipValue()
Handles any logic required to skip the value (reader must be positioned on a value).
|
protected BsonDocumentReader.Context |
getContext()
Get the context, which will indicate which state the reader is in, for example which part of a document it's currently reading.
|
void |
mark()
Creates a bookmark in the BsonReader's input
The previous mark must be cleared before creating a new one
|
BsonType |
readBsonType()
Reads a BSONType from the reader.
|
void |
reset()
Go back to the state at the last mark and removes the mark
|
checkPreconditions, close, getCurrentBsonType, getCurrentName, getNextState, getState, isClosed, peekBinarySubType, readBinaryData, readBinaryData, readBoolean, readBoolean, readDateTime, readDateTime, readDBPointer, readDBPointer, 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, setContext, setCurrentBsonType, setCurrentName, setState, skipName, skipValue, throwInvalidContextType, throwInvalidState, verifyBSONType, verifyNamepublic BsonDocumentReader(BsonDocument document)
document - the document to read fromprotected BsonBinary doReadBinaryData()
AbstractBsonReaderdoReadBinaryData 在类中 AbstractBsonReaderprotected byte doPeekBinarySubType()
AbstractBsonReaderdoPeekBinarySubType 在类中 AbstractBsonReaderprotected boolean doReadBoolean()
AbstractBsonReaderdoReadBoolean 在类中 AbstractBsonReaderprotected long doReadDateTime()
AbstractBsonReaderdoReadDateTime 在类中 AbstractBsonReaderprotected double doReadDouble()
AbstractBsonReaderdoReadDouble 在类中 AbstractBsonReaderprotected void doReadEndArray()
AbstractBsonReaderdoReadEndArray 在类中 AbstractBsonReaderprotected void doReadEndDocument()
AbstractBsonReaderdoReadEndDocument 在类中 AbstractBsonReaderprotected int doReadInt32()
AbstractBsonReaderdoReadInt32 在类中 AbstractBsonReaderprotected long doReadInt64()
AbstractBsonReaderdoReadInt64 在类中 AbstractBsonReaderprotected java.lang.String doReadJavaScript()
AbstractBsonReaderdoReadJavaScript 在类中 AbstractBsonReaderprotected java.lang.String doReadJavaScriptWithScope()
AbstractBsonReaderdoReadJavaScriptWithScope 在类中 AbstractBsonReaderprotected void doReadMaxKey()
AbstractBsonReaderdoReadMaxKey 在类中 AbstractBsonReaderprotected void doReadMinKey()
AbstractBsonReaderdoReadMinKey 在类中 AbstractBsonReaderprotected void doReadNull()
AbstractBsonReaderdoReadNull 在类中 AbstractBsonReaderprotected ObjectId doReadObjectId()
AbstractBsonReaderdoReadObjectId 在类中 AbstractBsonReaderprotected BsonRegularExpression doReadRegularExpression()
AbstractBsonReaderdoReadRegularExpression 在类中 AbstractBsonReaderprotected BsonDbPointer doReadDBPointer()
AbstractBsonReaderdoReadDBPointer 在类中 AbstractBsonReaderprotected void doReadStartArray()
AbstractBsonReaderdoReadStartArray 在类中 AbstractBsonReaderprotected void doReadStartDocument()
AbstractBsonReaderdoReadStartDocument 在类中 AbstractBsonReaderprotected java.lang.String doReadString()
AbstractBsonReaderdoReadString 在类中 AbstractBsonReaderprotected java.lang.String doReadSymbol()
AbstractBsonReaderdoReadSymbol 在类中 AbstractBsonReaderprotected BsonTimestamp doReadTimestamp()
AbstractBsonReaderdoReadTimestamp 在类中 AbstractBsonReaderprotected void doReadUndefined()
AbstractBsonReaderdoReadUndefined 在类中 AbstractBsonReaderprotected void doSkipName()
AbstractBsonReaderdoSkipName 在类中 AbstractBsonReaderprotected void doSkipValue()
AbstractBsonReaderdoSkipValue 在类中 AbstractBsonReaderpublic BsonType readBsonType()
BsonReaderreadBsonType 在接口中 BsonReaderreadBsonType 在类中 AbstractBsonReaderpublic void mark()
BsonReaderpublic void reset()
BsonReaderprotected BsonDocumentReader.Context getContext()
AbstractBsonReadergetContext 在类中 AbstractBsonReader