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.
|
protected IOException |
raiseException(String message) |
public JsonInput(InputStream in)
public JsonInput(Reader in)
public void close()
throws IOException
IOExceptionprotected IOException raiseException(String message)
raiseException in class AbstractStreamingInputpublic 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 © 2017. All rights reserved.