public class JsonInput extends AbstractStreamingInput
level| Constructor and Description |
|---|
JsonInput(InputStream in) |
JsonInput(Reader in) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
byte[] |
getByteArray()
Get the value as a byte[] array.
|
Token |
next(Token expected)
Advance to the next token checking that it is of a certain type.
|
Token |
next0() |
Token |
peek()
Peek into the stream and return the next token.
|
current, getBoolean, getDouble, getFloat, getInt, getLong, getShort, getString, getValue, next, raiseException, setValue, skip, skipValuepublic JsonInput(InputStream in)
public JsonInput(Reader in)
public void close()
throws IOException
IOExceptionpublic Token next(Token expected) throws IOException
StreamingInputnext in interface StreamingInputnext in class AbstractStreamingInputIOExceptionpublic Token next0() throws IOException
next0 in class AbstractStreamingInputIOExceptionpublic Token peek() throws IOException
StreamingInputIOExceptionpublic byte[] getByteArray()
StreamingInputgetByteArray in interface StreamingInputgetByteArray in class AbstractStreamingInputCopyright © 2016. All rights reserved.