* @see JsonWriter#JsonWriter(Writer, int, Format)
* @since 1.4
*/
public JsonWriter(final Writer writer, final int mode, final Format format, final int bufferSize) {
super(mode, format.getNameCoder());
this.writer = new QuickWriter(writer, bufferSize);
this.format = format;
depth = (mode & DROP_ROOT_MODE) == 0 ? -1 : 0;
}