Home
last modified time | relevance | path

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

/cts/libs/json/src/com/android/json/stream/
DJsonWriter.java131 protected final List<JsonScope> mStack = new ArrayList<JsonScope>();
134 mStack.add(JsonScope.EMPTY_DOCUMENT);
183 return open(JsonScope.EMPTY_ARRAY, "["); in beginArray()
192 return close(JsonScope.EMPTY_ARRAY, JsonScope.NONEMPTY_ARRAY, "]"); in endArray()
202 return open(JsonScope.EMPTY_OBJECT, "{"); in beginObject()
211 return close(JsonScope.EMPTY_OBJECT, JsonScope.NONEMPTY_OBJECT, "}"); in endObject()
218 private JsonWriter open(JsonScope empty, String openBracket) throws IOException { in open()
229 private JsonWriter close(JsonScope empty, JsonScope nonempty, String closeBracket) in close()
231 JsonScope context = peek(); in close()
245 protected 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 …]
DNewlineDelimitedJsonWriter.java176 replaceTop(JsonScope.NONEMPTY_ARRAY); in beforeValue()
187 replaceTop(JsonScope.NONEMPTY_OBJECT); in beforeValue()
DJsonScope.java22 enum JsonScope { enum