public class JsonReader extends AbstractBsonReader
AbstractBsonReader.State| Constructor and Description |
|---|
JsonReader(java.io.Reader reader)
Constructs a new instance with the given
Reader positioned at a JSON object. |
JsonReader(java.lang.String json)
Constructs a new instance with the given string positioned at a JSON object.
|
| 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()
Deprecated.
|
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, skipValuepublic JsonReader(java.lang.String json)
json - A string representation of a JSON object.public JsonReader(java.io.Reader reader)
Reader positioned at a JSON object.
The application is responsible for closing the Reader.
reader - A reader representation of a JSON object.public BsonType readBsonType()
BsonReaderreadBsonType in interface BsonReaderreadBsonType in class AbstractBsonReaderpublic Decimal128 doReadDecimal128()
AbstractBsonReader@Deprecated public void mark()
BsonReaderpublic BsonReaderMark getMark()
BsonReader@Deprecated public void reset()
BsonReaderCopyright © 2010 - 2023 Adobe. All Rights Reserved