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. |
java.lang.String |
nextName()
If the next token is
AwsJsonToken.FIELD_NAME, gets the field name
as String, and consumes it. |
java.lang.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 java.io.IOException
java.io.IOExceptionvoid endArray()
throws java.io.IOException
java.io.IOExceptionvoid beginObject()
throws java.io.IOException
java.io.IOExceptionvoid endObject()
throws java.io.IOException
java.io.IOExceptionboolean isContainer()
throws java.io.IOException
AwsJsonToken.BEGIN_ARRAY
or AwsJsonToken.BEGIN_OBJECT.java.io.IOExceptionboolean hasNext()
throws java.io.IOException
java.io.IOExceptionjava.lang.String nextName()
throws java.io.IOException
AwsJsonToken.FIELD_NAME, gets the field name
as String, and consumes it.java.io.IOExceptionjava.lang.String nextString()
throws java.io.IOException
String, or null if the token is
AwsJsonToken.VALUE_NULL.Stringjava.io.IOExceptionAwsJsonToken peek() throws java.io.IOException
java.io.IOExceptionvoid skipValue()
throws java.io.IOException
java.io.IOExceptionvoid close()
throws java.io.IOException
Reader.java.io.IOException