public class UBJsonReader extends java.lang.Object implements BaseJsonReader
JsonValue
objects. Extend this class and override
methods to perform event driven parsing. When this is done, the parse methods will return null.Constructor and Description |
---|
UBJsonReader() |
Modifier and Type | Method and Description |
---|---|
JsonValue |
parse(java.io.DataInputStream din) |
protected JsonValue |
parse(java.io.DataInputStream din,
byte type) |
JsonValue |
parse(FileHandle file) |
JsonValue |
parse(java.io.InputStream input) |
protected JsonValue |
parseArray(java.io.DataInputStream din) |
protected JsonValue |
parseData(java.io.DataInputStream din,
byte blockType) |
protected JsonValue |
parseObject(java.io.DataInputStream din) |
protected java.lang.String |
parseString(java.io.DataInputStream din,
byte type) |
protected java.lang.String |
readString(java.io.DataInputStream din,
long size) |
protected short |
readUChar(java.io.DataInputStream din) |
protected long |
readUInt(java.io.DataInputStream din) |
public JsonValue parse(java.io.InputStream input)
parse
in interface BaseJsonReader
public JsonValue parse(FileHandle file)
parse
in interface BaseJsonReader
public JsonValue parse(java.io.DataInputStream din) throws java.io.IOException
java.io.IOException
protected JsonValue parse(java.io.DataInputStream din, byte type) throws java.io.IOException
java.io.IOException
protected JsonValue parseArray(java.io.DataInputStream din) throws java.io.IOException
java.io.IOException
protected JsonValue parseObject(java.io.DataInputStream din) throws java.io.IOException
java.io.IOException
protected JsonValue parseData(java.io.DataInputStream din, byte blockType) throws java.io.IOException
java.io.IOException
protected java.lang.String parseString(java.io.DataInputStream din, byte type) throws java.io.IOException
java.io.IOException
protected short readUChar(java.io.DataInputStream din) throws java.io.IOException
java.io.IOException
protected long readUInt(java.io.DataInputStream din) throws java.io.IOException
java.io.IOException
protected java.lang.String readString(java.io.DataInputStream din, long size) throws java.io.IOException
java.io.IOException