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, list or value.
|
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, Token.LIST_START
or Token.VALUE. See skipValue() for skipping reading
when the current token is Token.KEY.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 © 2017. All rights reserved.