public class JsonReader extends org.bson.AbstractBsonReader
A simplified fork of org.bson.json.JsonReader that works with readers and removes processing related to MongoDB
Modifiers | Name | Description |
---|---|---|
protected class |
JsonReader.Context |
|
protected class |
JsonReader.Mark |
Modifiers | Name | Description |
---|---|---|
private java.lang.Object |
currentValue |
|
private JsonReader.Mark |
mark |
|
private JsonToken |
pushedToken |
|
private JsonScanner |
scanner |
Constructor and description |
---|
JsonReader
(java.lang.String json) Constructs a new instance with the given JSON string. |
JsonReader
(java.io.Reader reader) Constructs a new instance with the given JSON reader. |
Type Params | Return Type | Name and description |
---|---|---|
|
protected int |
doPeekBinarySize() |
|
protected byte |
doPeekBinarySubType() |
|
protected org.bson.BsonBinary |
doReadBinaryData() |
|
protected boolean |
doReadBoolean() |
|
protected org.bson.BsonDbPointer |
doReadDBPointer() |
|
protected long |
doReadDateTime() |
|
protected org.bson.types.Decimal128 |
doReadDecimal128() |
|
protected double |
doReadDouble() |
|
protected void |
doReadEndArray() |
|
protected void |
doReadEndDocument() |
|
protected int |
doReadInt32() |
|
protected long |
doReadInt64() |
|
protected java.lang.String |
doReadJavaScript() |
|
protected java.lang.String |
doReadJavaScriptWithScope() |
|
protected void |
doReadMaxKey() |
|
protected void |
doReadMinKey() |
|
protected void |
doReadNull() |
|
protected org.bson.types.ObjectId |
doReadObjectId() |
|
protected org.bson.BsonRegularExpression |
doReadRegularExpression() |
|
protected void |
doReadStartArray() |
|
protected void |
doReadStartDocument() |
|
protected java.lang.String |
doReadString() |
|
protected java.lang.String |
doReadSymbol() |
|
protected org.bson.BsonTimestamp |
doReadTimestamp() |
|
protected void |
doReadUndefined() |
|
protected void |
doSkipName() |
|
protected void |
doSkipValue() |
|
protected JsonWriter.Context |
getContext() |
|
public org.bson.BsonReaderMark |
getMark() |
|
private JsonToken |
popToken() |
|
private void |
pushToken(JsonToken token) |
|
public org.bson.BsonType |
readBsonType() |
|
private void |
verifyToken(java.lang.Object expected) |
|
private void |
visitExtendedJSON() |
Methods inherited from class | Name |
---|---|
class org.bson.AbstractBsonReader |
org.bson.AbstractBsonReader#skipValue(), org.bson.AbstractBsonReader#readString(java.lang.String), org.bson.AbstractBsonReader#readString(), org.bson.AbstractBsonReader#readBoolean(), org.bson.AbstractBsonReader#readBoolean(java.lang.String), org.bson.AbstractBsonReader#readDouble(), org.bson.AbstractBsonReader#readDouble(java.lang.String), org.bson.AbstractBsonReader#readNull(), org.bson.AbstractBsonReader#readNull(java.lang.String), org.bson.AbstractBsonReader#getCurrentBsonType(), org.bson.AbstractBsonReader#getCurrentName(), org.bson.AbstractBsonReader#readBinaryData(), org.bson.AbstractBsonReader#readBinaryData(java.lang.String), org.bson.AbstractBsonReader#peekBinarySubType(), org.bson.AbstractBsonReader#peekBinarySize(), org.bson.AbstractBsonReader#readBsonType(), org.bson.AbstractBsonReader#readDateTime(), org.bson.AbstractBsonReader#readDateTime(java.lang.String), org.bson.AbstractBsonReader#readEndArray(), org.bson.AbstractBsonReader#readEndDocument(), org.bson.AbstractBsonReader#readInt32(), org.bson.AbstractBsonReader#readInt32(java.lang.String), org.bson.AbstractBsonReader#readInt64(java.lang.String), org.bson.AbstractBsonReader#readInt64(), org.bson.AbstractBsonReader#readDecimal128(), org.bson.AbstractBsonReader#readDecimal128(java.lang.String), org.bson.AbstractBsonReader#readJavaScript(), org.bson.AbstractBsonReader#readJavaScript(java.lang.String), org.bson.AbstractBsonReader#readJavaScriptWithScope(), org.bson.AbstractBsonReader#readJavaScriptWithScope(java.lang.String), org.bson.AbstractBsonReader#readMaxKey(java.lang.String), org.bson.AbstractBsonReader#readMaxKey(), org.bson.AbstractBsonReader#readMinKey(), org.bson.AbstractBsonReader#readMinKey(java.lang.String), org.bson.AbstractBsonReader#readName(java.lang.String), org.bson.AbstractBsonReader#readName(), org.bson.AbstractBsonReader#readObjectId(java.lang.String), org.bson.AbstractBsonReader#readObjectId(), org.bson.AbstractBsonReader#readRegularExpression(), org.bson.AbstractBsonReader#readRegularExpression(java.lang.String), org.bson.AbstractBsonReader#readDBPointer(java.lang.String), org.bson.AbstractBsonReader#readDBPointer(), org.bson.AbstractBsonReader#readStartArray(), org.bson.AbstractBsonReader#readStartDocument(), org.bson.AbstractBsonReader#readSymbol(), org.bson.AbstractBsonReader#readSymbol(java.lang.String), org.bson.AbstractBsonReader#readTimestamp(), org.bson.AbstractBsonReader#readTimestamp(java.lang.String), org.bson.AbstractBsonReader#readUndefined(java.lang.String), org.bson.AbstractBsonReader#readUndefined(), org.bson.AbstractBsonReader#skipName(), org.bson.AbstractBsonReader#getState(), org.bson.AbstractBsonReader#close(), org.bson.AbstractBsonReader#wait(long), org.bson.AbstractBsonReader#wait(long, int), org.bson.AbstractBsonReader#wait(), org.bson.AbstractBsonReader#equals(java.lang.Object), org.bson.AbstractBsonReader#toString(), org.bson.AbstractBsonReader#hashCode(), org.bson.AbstractBsonReader#getClass(), org.bson.AbstractBsonReader#notify(), org.bson.AbstractBsonReader#notifyAll(), org.bson.AbstractBsonReader#getMark() |
Constructs a new instance with the given JSON string.
json
- A string representation of a JSON.Constructs a new instance with the given JSON reader.
reader
- The reader.