public class JsonReader
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
static interface |
JsonReader.ReadJsonObject<T extends JsonObject> |
static interface |
JsonReader.ReadObject<T> |
| Constructor and Description |
|---|
JsonReader(byte[] buffer,
int length,
ServiceLocator locator) |
JsonReader(byte[] buffer,
ServiceLocator locator) |
| Modifier and Type | Method and Description |
|---|---|
int |
calcHash() |
<T extends JsonObject> |
deserializeCollection(JsonReader.ReadJsonObject<T> readObject) |
<T extends JsonObject> |
deserializeCollection(JsonReader.ReadJsonObject<T> readObject,
java.util.Collection<T> res) |
<T> java.util.ArrayList<T> |
deserializeCollectionWithGet(JsonReader.ReadObject<T> readObject) |
<T> void |
deserializeCollectionWithGet(JsonReader.ReadObject<T> readObject,
java.util.Collection<T> res) |
<T> java.util.ArrayList<T> |
deserializeCollectionWithMove(JsonReader.ReadObject<T> readObject) |
<T> void |
deserializeCollectionWithMove(JsonReader.ReadObject<T> readObject,
java.util.Collection<T> res) |
<T extends JsonObject> |
deserializeNullableCollection(JsonReader.ReadJsonObject<T> readObject) |
<T extends JsonObject> |
deserializeNullableCollection(JsonReader.ReadJsonObject<T> readObject,
java.util.Collection<T> res) |
<T> java.util.ArrayList<T> |
deserializeNullableCollectionWithGet(JsonReader.ReadObject<T> readObject) |
<T> void |
deserializeNullableCollectionWithGet(JsonReader.ReadObject<T> readObject,
java.util.Collection<T> res) |
<T> java.util.ArrayList<T> |
deserializeNullableCollectionWithMove(JsonReader.ReadObject<T> readObject) |
<T> void |
deserializeNullableCollectionWithMove(JsonReader.ReadObject<T> readObject,
java.util.Collection<T> res) |
int |
fillName() |
int |
getCurrentIndex() |
java.lang.String |
getLastName() |
byte |
getNextToken() |
int |
getTokenStart() |
byte |
last() |
byte |
moveToNextToken() |
long |
positionInStream() |
byte |
read() |
byte[] |
readBase64() |
java.lang.String |
readNext() |
char[] |
readNumber() |
java.lang.String |
readShortValue() |
char[] |
readSimpleQuote() |
java.lang.String |
readSimpleString() |
java.lang.String |
readString() |
byte |
skip() |
boolean |
wasFalse() |
boolean |
wasLastName(java.lang.String name) |
boolean |
wasNull() |
boolean |
wasTrue() |
public JsonReader(byte[] buffer,
ServiceLocator locator)
throws java.io.IOException
java.io.IOExceptionpublic JsonReader(byte[] buffer,
int length,
ServiceLocator locator)
throws java.io.IOException
java.io.IOExceptionpublic byte read()
throws java.io.IOException
java.io.IOExceptionpublic byte last()
public java.lang.String readShortValue()
throws java.io.IOException
java.io.IOExceptionpublic int getTokenStart()
public int getCurrentIndex()
public char[] readNumber()
public java.lang.String readSimpleString()
throws java.io.IOException
java.io.IOExceptionpublic char[] readSimpleQuote()
throws java.io.IOException
java.io.IOExceptionpublic java.lang.String readString()
throws java.io.IOException
java.io.IOExceptionpublic byte getNextToken()
throws java.io.IOException
java.io.IOExceptionpublic byte moveToNextToken()
throws java.io.IOException
java.io.IOExceptionpublic long positionInStream()
public int fillName()
throws java.io.IOException
java.io.IOExceptionpublic int calcHash()
throws java.io.IOException
java.io.IOExceptionpublic boolean wasLastName(java.lang.String name)
public java.lang.String getLastName()
throws java.io.IOException
java.io.IOExceptionpublic byte skip()
throws java.io.IOException
java.io.IOExceptionpublic java.lang.String readNext()
public byte[] readBase64()
throws java.io.IOException
java.io.IOExceptionpublic boolean wasNull()
throws java.io.IOException
java.io.IOExceptionpublic boolean wasTrue()
throws java.io.IOException
java.io.IOExceptionpublic boolean wasFalse()
throws java.io.IOException
java.io.IOExceptionpublic <T> java.util.ArrayList<T> deserializeCollectionWithGet(JsonReader.ReadObject<T> readObject) throws java.io.IOException
java.io.IOExceptionpublic <T> java.util.ArrayList<T> deserializeCollectionWithMove(JsonReader.ReadObject<T> readObject) throws java.io.IOException
java.io.IOExceptionpublic <T> void deserializeCollectionWithGet(JsonReader.ReadObject<T> readObject, java.util.Collection<T> res) throws java.io.IOException
java.io.IOExceptionpublic <T> void deserializeCollectionWithMove(JsonReader.ReadObject<T> readObject, java.util.Collection<T> res) throws java.io.IOException
java.io.IOExceptionpublic <T> java.util.ArrayList<T> deserializeNullableCollectionWithGet(JsonReader.ReadObject<T> readObject) throws java.io.IOException
java.io.IOExceptionpublic <T> java.util.ArrayList<T> deserializeNullableCollectionWithMove(JsonReader.ReadObject<T> readObject) throws java.io.IOException
java.io.IOExceptionpublic <T> void deserializeNullableCollectionWithGet(JsonReader.ReadObject<T> readObject, java.util.Collection<T> res) throws java.io.IOException
java.io.IOExceptionpublic <T> void deserializeNullableCollectionWithMove(JsonReader.ReadObject<T> readObject, java.util.Collection<T> res) throws java.io.IOException
java.io.IOExceptionpublic <T extends JsonObject> java.util.ArrayList<T> deserializeCollection(JsonReader.ReadJsonObject<T> readObject) throws java.io.IOException
java.io.IOExceptionpublic <T extends JsonObject> void deserializeCollection(JsonReader.ReadJsonObject<T> readObject, java.util.Collection<T> res) throws java.io.IOException
java.io.IOExceptionpublic <T extends JsonObject> java.util.ArrayList<T> deserializeNullableCollection(JsonReader.ReadJsonObject<T> readObject) throws java.io.IOException
java.io.IOExceptionpublic <T extends JsonObject> void deserializeNullableCollection(JsonReader.ReadJsonObject<T> readObject, java.util.Collection<T> res) throws java.io.IOException
java.io.IOException