JsonUtf8Writer(BufferedSink sink) { if (sink == null) { throw new NullPointerException("sink == null"); } this.sink = sink; pushScope(EMPTY_DOCUMENT); }
/** * Enters a new scope by appending any necessary whitespace and the given * bracket. */ private JsonWriter open(int empty, String openBracket) throws IOException { beforeValue(); pushScope(empty); pathIndices[stackSize - 1] = 0; sink.writeUtf8(openBracket); return this; }
JsonUtf8Writer(BufferedSink sink) { if (sink == null) { throw new NullPointerException("sink == null"); } this.sink = sink; pushScope(EMPTY_DOCUMENT); }
JsonUtf8Writer(BufferedSink sink) { if (sink == null) { throw new NullPointerException("sink == null"); } this.sink = sink; pushScope(EMPTY_DOCUMENT); }
/** * Enters a new scope by appending any necessary whitespace and the given * bracket. */ private JsonWriter open(int empty, String openBracket) throws IOException { beforeValue(); pushScope(empty); pathIndices[stackSize - 1] = 0; sink.writeUtf8(openBracket); return this; }
/** * Enters a new scope by appending any necessary whitespace and the given * bracket. */ private JsonWriter open(int empty, String openBracket) throws IOException { beforeValue(); pushScope(empty); pathIndices[stackSize - 1] = 0; sink.writeUtf8(openBracket); return this; }