public interface AwsJsonReader
Modifier and Type | Method and Description |
---|---|
void |
beginArray()
Consumes the next token and asserts that it is the beginning of an array.
|
void |
beginObject()
Consumes the next token and asserts that it is the beginning of an
object.
|
void |
close()
Closes this reader as well as the underlying
Reader . |
void |
endArray()
Consumes the next token and asserts that it is the end of an array.
|
void |
endObject()
Consumes the next token and asserts that it is the end of an object.
|
boolean |
hasNext()
If in an array or an object, returns true if there are more elements.
|
boolean |
isContainer()
Returns true if the next token is either
AwsJsonToken.BEGIN_ARRAY
or AwsJsonToken.BEGIN_OBJECT . |
String |
nextName()
If the next token is
AwsJsonToken.FIELD_NAME , gets the field name
as String , and consumes it. |
String |
nextString()
Gets the next value as
String , or null if the token is
AwsJsonToken.VALUE_NULL . |
AwsJsonToken |
peek()
Gets the next token but doesn't consume it.
|
void |
skipValue()
Skips a value.
|
void beginArray() throws IOException
IOException
void endArray() throws IOException
IOException
void beginObject() throws IOException
IOException
void endObject() throws IOException
IOException
boolean isContainer() throws IOException
AwsJsonToken.BEGIN_ARRAY
or AwsJsonToken.BEGIN_OBJECT
.IOException
boolean hasNext() throws IOException
IOException
String nextName() throws IOException
AwsJsonToken.FIELD_NAME
, gets the field name
as String
, and consumes it.IOException
String nextString() throws IOException
String
, or null if the token is
AwsJsonToken.VALUE_NULL
.String
IOException
AwsJsonToken peek() throws IOException
IOException
void skipValue() throws IOException
IOException
void close() throws IOException
Reader
.IOException
Copyright © 2019. All rights reserved.