Home
last modified time | relevance | path

Searched refs:JsonScope (Results 1 – 3 of 3) sorted by relevance

/cts/libs/json/src/com/android/json/stream/
DJsonWriter.java125 private final List<JsonScope> stack = new ArrayList<JsonScope>();
127 stack.add(JsonScope.EMPTY_DOCUMENT);
178 return open(JsonScope.EMPTY_ARRAY, "["); in beginArray()
187 return close(JsonScope.EMPTY_ARRAY, JsonScope.NONEMPTY_ARRAY, "]"); in endArray()
197 return open(JsonScope.EMPTY_OBJECT, "{"); in beginObject()
206 return close(JsonScope.EMPTY_OBJECT, JsonScope.NONEMPTY_OBJECT, "}"); in endObject()
213 private JsonWriter open(JsonScope empty, String openBracket) throws IOException { in open()
224 private JsonWriter close(JsonScope empty, JsonScope nonempty, String closeBracket) in close()
226 JsonScope context = peek(); in close()
242 private JsonScope peek() { in peek()
[all …]
DJsonReader.java191 private final List<JsonScope> stack = new ArrayList<JsonScope>();
193 push(JsonScope.EMPTY_DOCUMENT);
312 replaceTop(JsonScope.NONEMPTY_DOCUMENT); in peek()
508 stack.add(JsonScope.CLOSED); in close()
534 private JsonScope peekStack() { in peekStack()
538 private JsonScope pop() { in pop()
542 private void push(JsonScope newTop) { in push()
549 private void replaceTop(JsonScope newTop) { in replaceTop()
555 replaceTop(JsonScope.NONEMPTY_ARRAY); in nextInArray()
636 replaceTop(JsonScope.DANGLING_NAME); in nextInObject()
[all …]
DJsonScope.java22 enum JsonScope { enum