GsonAgent/src/main/java/cn/citycraft/GsonAgent/api/stream/JsonReader.java

45 lines
980 B
Java
Raw Normal View History

2016-01-06 03:13:42 +00:00
package cn.citycraft.GsonAgent.api.stream;
import java.io.IOException;
public abstract interface JsonReader {
public void beginArray() throws IOException;
2016-01-06 03:13:42 +00:00
public void beginObject() throws IOException;
2016-01-06 03:13:42 +00:00
public void close() throws IOException;
2016-01-06 03:13:42 +00:00
public void endArray() throws IOException;
2016-01-06 03:13:42 +00:00
public void endObject() throws IOException;
2016-01-06 03:13:42 +00:00
public boolean hasNext() throws IOException;
2016-01-06 03:13:42 +00:00
public boolean isLenient();
2016-01-06 03:13:42 +00:00
public boolean nextBoolean() throws IOException;
2016-01-06 03:13:42 +00:00
public double nextDouble() throws IOException;
2016-01-06 03:13:42 +00:00
public int nextInt() throws IOException;
2016-01-06 03:13:42 +00:00
public long nextLong() throws IOException;
2016-01-06 03:13:42 +00:00
public String nextName() throws IOException;
2016-01-06 03:13:42 +00:00
public void nextNull() throws IOException;
2016-01-06 03:13:42 +00:00
public String nextString() throws IOException;
2016-01-06 03:13:42 +00:00
public JsonToken peek() throws IOException;
2016-01-06 03:13:42 +00:00
public void setLenient(boolean lenient);
2016-01-06 03:13:42 +00:00
public void skipValue() throws IOException;
2016-01-06 03:13:42 +00:00
@Override
public String toString();
2016-01-06 03:13:42 +00:00
}