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
27 import android.util.JsonToken;50 assertEquals(JsonToken.END_DOCUMENT, reader.peek()); in testReadArray()59 assertEquals(JsonToken.END_DOCUMENT, reader.peek()); in testReadEmptyArray()72 assertEquals(JsonToken.END_DOCUMENT, reader.peek()); in testReadObject()81 assertEquals(JsonToken.END_DOCUMENT, reader.peek()); in testReadEmptyObject()94 assertEquals(JsonToken.END_DOCUMENT, reader.peek()); in testSkipObject()118 assertEquals(JsonToken.END_DOCUMENT, reader.peek()); in testSkipAfterEndOfDocument()141 assertEquals(JsonToken.END_DOCUMENT, reader.peek()); in testHelloWorld()208 assertEquals(JsonToken.END_DOCUMENT, reader.peek()); in testCharacterUnescaping()254 assertEquals(JsonToken.END_DOCUMENT, reader.peek()); in testDoubles()[all …]