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,
ServiceLocator locator) |
| Modifier and Type | Method and Description |
|---|---|
<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> |
deserializeCollection(JsonReader.ReadObject<T> readObject) |
<T> void |
deserializeCollection(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> |
deserializeNullableCollection(JsonReader.ReadObject<T> readObject) |
<T> void |
deserializeNullableCollection(JsonReader.ReadObject<T> readObject,
java.util.Collection<T> res) |
int |
fillName() |
int |
getCurrentIndex() |
byte |
getNextToken() |
int |
getTokenStart() |
byte |
last() |
byte |
moveToNextToken() |
long |
positionInStream() |
byte |
read() |
byte[] |
readBase64() |
java.lang.String |
readNext() |
char[] |
readNumber() |
java.lang.String |
readShortValue() |
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 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 java.lang.String readString()
throws java.io.UnsupportedEncodingException,
java.io.IOException
java.io.UnsupportedEncodingExceptionjava.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 boolean wasLastName(java.lang.String name)
public 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> deserializeCollection(JsonReader.ReadObject<T> readObject) throws java.io.IOException
java.io.IOExceptionpublic <T> void deserializeCollection(JsonReader.ReadObject<T> readObject, java.util.Collection<T> res) throws java.io.IOException
java.io.IOExceptionpublic <T> java.util.ArrayList<T> deserializeNullableCollection(JsonReader.ReadObject<T> readObject) throws java.io.IOException
java.io.IOExceptionpublic <T> void deserializeNullableCollection(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