public class JsonReader extends Object
| Modifier and Type | Field and Description |
|---|---|
protected byte[] |
array |
protected int |
next |
protected int |
offset |
| Constructor and Description |
|---|
JsonReader(byte[] array) |
JsonReader(byte[] array,
int offset) |
| Modifier and Type | Method and Description |
|---|---|
IOException |
exception(String message) |
void |
expect(int b,
String message) |
int |
next() |
protected int |
read() |
ArrayList<Object> |
readArray() |
ArrayList<Object> |
readArray(Type elementType) |
byte[] |
readBinary() |
boolean |
readBoolean() |
byte |
readByte() |
char |
readChar() |
double |
readDouble() |
char |
readEscapeChar() |
float |
readFloat() |
int |
readHexChar() |
int |
readInt() |
long |
readLong() |
Map<String,Object> |
readMap() |
<K> Map<K,Object> |
readMap(Class<K> keyClass,
Type valueType) |
String |
readNumber() |
Object |
readObject() |
<T> T |
readObject(Class<T> cls) |
Object |
readObject(Type type) |
short |
readShort() |
String |
readString() |
int |
skipWhitespace() |
public JsonReader(byte[] array)
public JsonReader(byte[] array,
int offset)
protected int read()
public final int next()
public final int skipWhitespace()
public final IOException exception(String message)
public final void expect(int b,
String message)
throws IOException
IOExceptionpublic final boolean readBoolean()
throws IOException
IOExceptionpublic final byte readByte()
throws IOException
IOExceptionpublic final short readShort()
throws IOException
IOExceptionpublic final char readChar()
throws IOException
IOExceptionpublic final int readInt()
throws IOException
IOExceptionpublic final long readLong()
throws IOException
IOExceptionpublic float readFloat()
throws IOException
IOExceptionpublic final double readDouble()
throws IOException
IOExceptionpublic final String readNumber() throws IOException
IOExceptionpublic final int readHexChar()
throws IOException
IOExceptionpublic final char readEscapeChar()
throws IOException
IOExceptionpublic String readString() throws IOException
IOExceptionpublic byte[] readBinary()
throws IOException
IOExceptionpublic ArrayList<Object> readArray() throws IOException, ClassNotFoundException
IOExceptionClassNotFoundExceptionpublic ArrayList<Object> readArray(Type elementType) throws IOException, ClassNotFoundException
IOExceptionClassNotFoundExceptionpublic Map<String,Object> readMap() throws IOException, ClassNotFoundException
IOExceptionClassNotFoundExceptionpublic <K> Map<K,Object> readMap(Class<K> keyClass, Type valueType) throws IOException, ClassNotFoundException
IOExceptionClassNotFoundExceptionpublic Object readObject() throws IOException, ClassNotFoundException
IOExceptionClassNotFoundExceptionpublic <T> T readObject(Class<T> cls) throws IOException, ClassNotFoundException
IOExceptionClassNotFoundExceptionpublic Object readObject(Type type) throws IOException, ClassNotFoundException
IOExceptionClassNotFoundExceptionCopyright © 2019. All rights reserved.