add methods

This commit is contained in:
Looly 2021-10-15 00:43:15 +08:00
parent 172d457bea
commit 05141a7927

View File

@ -62,13 +62,13 @@ public class JSONWriter extends Writer {
private boolean arrayMode;
/**
* 创建{@link JSONWriter}
* 创建JSONWriter
*
* @param writer {@link Writer}
* @param indentFactor 缩进因子定义每一级别增加的缩进量
* @param indent 本级别缩进量
* @param config JSON选项
* @return {@link JSONWriter}
* @return JSONWriter
*/
public static JSONWriter of(Writer writer, int indentFactor, int indent, JSONConfig config) {
return new JSONWriter(writer, indentFactor, indent, config);