public void setMaxBufSize(int maxBufSize) {
        if (maxBufSize < this.buf.length) {
            throw new JSONException("must > " + buf.length);
        }

        this.maxBufSize = maxBufSize;
    }
@since 1.2.9
@param writer
@param defaultFeatures
@param features
src/main/java/com/alibaba/fastjson/serializer/SerializeWriter.java