public class JsonReader extends AbstractBsonReader
| Modifier and Type | Class and Description |
|---|---|
protected class |
JsonReader.Context |
protected class |
JsonReader.Mark |
AbstractBsonReader.State| Constructor and Description |
|---|
JsonReader(String json)
Constructs a new instance with the given JSON string.
|
| Modifier and Type | Method and Description |
|---|---|
protected int |
doPeekBinarySize()
Handles the logic to peek at the binary size.
|
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
|
Decimal128 |
doReadDecimal128()
Handles the logic to read Decimal128
|
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 String |
doReadJavaScript()
Handles the logic to read Javascript functions
|
protected 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 String |
doReadString()
Handles the logic to read a String
|
protected 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 JsonReader.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.
|
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
|
checkPreconditions, close, getCurrentBsonType, getCurrentName, getNextState, getState, isClosed, 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, setContext, setCurrentBsonType, setCurrentName, setState, skipName, skipValue, throwInvalidContextType, throwInvalidState, verifyBSONType, verifyNamepublic JsonReader(String json)
json - A string representation of a JSON.protected BsonBinary doReadBinaryData()
AbstractBsonReaderdoReadBinaryData in class AbstractBsonReaderprotected byte doPeekBinarySubType()
AbstractBsonReaderdoPeekBinarySubType in class AbstractBsonReaderprotected int doPeekBinarySize()
AbstractBsonReaderdoPeekBinarySize in class AbstractBsonReaderprotected boolean doReadBoolean()
AbstractBsonReaderdoReadBoolean in class AbstractBsonReaderpublic BsonType readBsonType()
BsonReaderreadBsonType in interface BsonReaderreadBsonType in class AbstractBsonReaderpublic Decimal128 doReadDecimal128()
AbstractBsonReaderdoReadDecimal128 in class AbstractBsonReaderprotected long doReadDateTime()
AbstractBsonReaderdoReadDateTime in class AbstractBsonReaderprotected double doReadDouble()
AbstractBsonReaderdoReadDouble in class AbstractBsonReaderprotected void doReadEndArray()
AbstractBsonReaderdoReadEndArray in class AbstractBsonReaderprotected void doReadEndDocument()
AbstractBsonReaderdoReadEndDocument in class AbstractBsonReaderprotected int doReadInt32()
AbstractBsonReaderdoReadInt32 in class AbstractBsonReaderprotected long doReadInt64()
AbstractBsonReaderdoReadInt64 in class AbstractBsonReaderprotected String doReadJavaScript()
AbstractBsonReaderdoReadJavaScript in class AbstractBsonReaderprotected String doReadJavaScriptWithScope()
AbstractBsonReaderdoReadJavaScriptWithScope in class AbstractBsonReaderprotected void doReadMaxKey()
AbstractBsonReaderdoReadMaxKey in class AbstractBsonReaderprotected void doReadMinKey()
AbstractBsonReaderdoReadMinKey in class AbstractBsonReaderprotected void doReadNull()
AbstractBsonReaderdoReadNull in class AbstractBsonReaderprotected ObjectId doReadObjectId()
AbstractBsonReaderdoReadObjectId in class AbstractBsonReaderprotected BsonRegularExpression doReadRegularExpression()
AbstractBsonReaderdoReadRegularExpression in class AbstractBsonReaderprotected BsonDbPointer doReadDBPointer()
AbstractBsonReaderdoReadDBPointer in class AbstractBsonReaderprotected void doReadStartArray()
AbstractBsonReaderdoReadStartArray in class AbstractBsonReaderprotected void doReadStartDocument()
AbstractBsonReaderdoReadStartDocument in class AbstractBsonReaderprotected String doReadString()
AbstractBsonReaderdoReadString in class AbstractBsonReaderprotected String doReadSymbol()
AbstractBsonReaderdoReadSymbol in class AbstractBsonReaderprotected BsonTimestamp doReadTimestamp()
AbstractBsonReaderdoReadTimestamp in class AbstractBsonReaderprotected void doReadUndefined()
AbstractBsonReaderdoReadUndefined in class AbstractBsonReaderprotected void doSkipName()
AbstractBsonReaderdoSkipName in class AbstractBsonReaderprotected void doSkipValue()
AbstractBsonReaderdoSkipValue in class AbstractBsonReader@Deprecated public void mark()
BsonReaderpublic BsonReaderMark getMark()
BsonReaderpublic void reset()
BsonReaderprotected JsonReader.Context getContext()
AbstractBsonReadergetContext in class AbstractBsonReader