public final 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,
int length,
ServiceLocator locator,
char[] tmp) |
JsonReader(byte[] buffer,
ServiceLocator locator) |
JsonReader(byte[] buffer,
ServiceLocator locator,
char[] tmp) |
| 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() |
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)
public JsonReader(byte[] buffer,
ServiceLocator locator,
char[] tmp)
public JsonReader(byte[] buffer,
int length,
ServiceLocator locator)
throws java.io.IOException
java.io.IOExceptionpublic JsonReader(byte[] buffer,
int length,
ServiceLocator locator,
char[] tmp)
throws java.io.IOException
java.io.IOExceptionpublic final byte read()
throws java.io.IOException
java.io.IOExceptionpublic final byte last()
public final int getTokenStart()
public final int getCurrentIndex()
public final char[] readNumber()
public final java.lang.String readSimpleString()
throws java.io.IOException
java.io.IOExceptionpublic final char[] readSimpleQuote()
throws java.io.IOException
java.io.IOExceptionpublic final java.lang.String readString()
throws java.io.IOException
java.io.IOExceptionpublic final byte getNextToken()
throws java.io.IOException
java.io.IOExceptionpublic final byte moveToNextToken()
throws java.io.IOException
java.io.IOExceptionpublic final long positionInStream()
public final int fillName()
throws java.io.IOException
java.io.IOExceptionpublic final int calcHash()
throws java.io.IOException
java.io.IOExceptionpublic final boolean wasLastName(java.lang.String name)
public final java.lang.String getLastName()
throws java.io.IOException
java.io.IOExceptionpublic final byte skip()
throws java.io.IOException
java.io.IOExceptionpublic final java.lang.String readNext()
throws java.io.IOException
java.io.IOExceptionpublic final byte[] readBase64()
throws java.io.IOException
java.io.IOExceptionpublic final boolean wasNull()
throws java.io.IOException
java.io.IOExceptionpublic final boolean wasTrue()
throws java.io.IOException
java.io.IOExceptionpublic final boolean wasFalse()
throws java.io.IOException
java.io.IOExceptionpublic final <T> java.util.ArrayList<T> deserializeCollectionWithGet(JsonReader.ReadObject<T> readObject) throws java.io.IOException
java.io.IOExceptionpublic final <T> java.util.ArrayList<T> deserializeCollectionWithMove(JsonReader.ReadObject<T> readObject) throws java.io.IOException
java.io.IOExceptionpublic final <T> void deserializeCollectionWithGet(JsonReader.ReadObject<T> readObject, java.util.Collection<T> res) throws java.io.IOException
java.io.IOExceptionpublic final <T> void deserializeCollectionWithMove(JsonReader.ReadObject<T> readObject, java.util.Collection<T> res) throws java.io.IOException
java.io.IOExceptionpublic final <T> java.util.ArrayList<T> deserializeNullableCollectionWithGet(JsonReader.ReadObject<T> readObject) throws java.io.IOException
java.io.IOExceptionpublic final <T> java.util.ArrayList<T> deserializeNullableCollectionWithMove(JsonReader.ReadObject<T> readObject) throws java.io.IOException
java.io.IOExceptionpublic final <T> void deserializeNullableCollectionWithGet(JsonReader.ReadObject<T> readObject, java.util.Collection<T> res) throws java.io.IOException
java.io.IOExceptionpublic final <T> void deserializeNullableCollectionWithMove(JsonReader.ReadObject<T> readObject, java.util.Collection<T> res) throws java.io.IOException
java.io.IOExceptionpublic final <T extends JsonObject> java.util.ArrayList<T> deserializeCollection(JsonReader.ReadJsonObject<T> readObject) throws java.io.IOException
java.io.IOExceptionpublic final <T extends JsonObject> void deserializeCollection(JsonReader.ReadJsonObject<T> readObject, java.util.Collection<T> res) throws java.io.IOException
java.io.IOExceptionpublic final <T extends JsonObject> java.util.ArrayList<T> deserializeNullableCollection(JsonReader.ReadJsonObject<T> readObject) throws java.io.IOException
java.io.IOExceptionpublic final <T extends JsonObject> void deserializeNullableCollection(JsonReader.ReadJsonObject<T> readObject, java.util.Collection<T> res) throws java.io.IOException
java.io.IOException