public class JSONTokenizer
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static int |
ARRAY_END |
static int |
ARRAY_START |
static int |
BOOLEAN |
static int |
COLON |
static int |
COMMA |
static int |
EMPTY |
static int |
EOF |
static int |
GARBAGE |
static int |
NULL |
static int |
NUMBER |
static int |
OBJECT_END |
static int |
OBJECT_START |
static int |
STRING |
Constructor and Description |
---|
JSONTokenizer(java.io.BufferedReader reader) |
JSONTokenizer(java.io.File file) |
JSONTokenizer(java.io.InputStream stream) |
JSONTokenizer(java.io.InputStream stream,
java.nio.charset.Charset charset) |
JSONTokenizer(java.io.InputStream stream,
java.lang.String charset) |
JSONTokenizer(java.lang.String fileName) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
int |
getCharacter() |
long |
getPosition() |
boolean |
lastBoolean() |
java.lang.String |
lastGarbage() |
double |
lastNumber() |
java.lang.String |
lastString() |
int |
next() |
int |
token() |
public static final int EOF
public static final int OBJECT_START
public static final int OBJECT_END
public static final int COLON
public static final int COMMA
public static final int ARRAY_START
public static final int ARRAY_END
public static final int STRING
public static final int NUMBER
public static final int BOOLEAN
public static final int NULL
public static final int GARBAGE
public static final int EMPTY
public JSONTokenizer(java.lang.String fileName) throws java.io.FileNotFoundException
java.io.FileNotFoundException
public JSONTokenizer(java.io.File file) throws java.io.FileNotFoundException
java.io.FileNotFoundException
public JSONTokenizer(java.io.InputStream stream) throws java.io.UnsupportedEncodingException
java.io.UnsupportedEncodingException
public JSONTokenizer(java.io.InputStream stream, java.lang.String charset) throws java.io.UnsupportedEncodingException
java.io.UnsupportedEncodingException
public JSONTokenizer(java.io.InputStream stream, java.nio.charset.Charset charset) throws java.io.UnsupportedEncodingException
java.io.UnsupportedEncodingException
public JSONTokenizer(java.io.BufferedReader reader)
public int token()
public java.lang.String lastString()
public boolean lastBoolean()
public double lastNumber()
public java.lang.String lastGarbage()
public int next()
public long getPosition()
public int getCharacter()
public void close()