Searched refs:JsonToken (Results 1 – 3 of 3) sorted by relevance
200 private JsonToken token;256 expect(JsonToken.BEGIN_ARRAY); in beginArray()264 expect(JsonToken.END_ARRAY); in endArray()272 expect(JsonToken.BEGIN_OBJECT); in beginObject()280 expect(JsonToken.END_OBJECT); in endObject()286 private void expect(JsonToken expected) throws IOException { in expect()299 return token != JsonToken.END_OBJECT && token != JsonToken.END_ARRAY; in hasNext()305 public JsonToken peek() throws IOException { in peek()313 JsonToken firstToken = nextValue(); in peek()314 if (token != JsonToken.BEGIN_ARRAY && token != JsonToken.BEGIN_OBJECT) { in peek()[all …]
22 public enum JsonToken { enum
26 import android.util.JsonToken;38 assertEquals(JsonToken.END_DOCUMENT, reader.peek()); in testReadArray()46 assertEquals(JsonToken.END_DOCUMENT, reader.peek()); in testReadEmptyArray()58 assertEquals(JsonToken.END_DOCUMENT, reader.peek()); in testReadObject()66 assertEquals(JsonToken.END_DOCUMENT, reader.peek()); in testReadEmptyObject()78 assertEquals(JsonToken.END_DOCUMENT, reader.peek()); in testSkipObject()105 assertEquals(JsonToken.END_DOCUMENT, reader.peek()); in testSkipAfterEndOfDocument()127 assertEquals(JsonToken.END_DOCUMENT, reader.peek()); in testHelloWorld()199 assertEquals(JsonToken.END_DOCUMENT, reader.peek()); in testCharacterUnescaping()243 assertEquals(JsonToken.END_DOCUMENT, reader.peek()); in testDoubles()[all …]