public interface StreamingInput extends Closeable
| Modifier and Type | Method and Description |
|---|---|
Token |
current()
Get the current token.
|
boolean |
getBoolean()
Get the value as a boolean.
|
byte[] |
getByteArray()
Get the value as a byte[] array.
|
double |
getDouble()
Get the value as a double.
|
float |
getFloat()
Get the value as a float.
|
int |
getInt()
Get the value as an integer.
|
long |
getLong()
Get the value as a long.
|
short |
getShort()
Get the value as a short.
|
String |
getString()
Get the current value as a string.
|
Object |
getValue()
Get the current value.
|
Token |
next()
Advance to the next token.
|
Token |
next(Token expected)
Advance to the next token checking that it is of a certain type.
|
Token |
peek()
Peek into the stream and return the next token.
|
void |
skip()
Skip the started object or list.
|
void |
skipValue()
If this token is a
Token.KEY this will skip its value. |
Token peek() throws IOException
IOExceptionToken next() throws IOException
IOExceptionToken next(Token expected) throws IOException
expected - IOExceptionvoid skip() throws IOException
Token.OBJECT_START or Token.LIST_START.IOExceptionvoid skipValue()
throws IOException
Token.KEY this will skip its value.IOExceptionToken current()
Object getValue()
String getString()
boolean getBoolean()
double getDouble()
float getFloat()
long getLong()
int getInt()
short getShort()
byte[] getByteArray()
Copyright © 2016. All rights reserved.