类 BasicJsonWriter.IndentingWriter
java.lang.Object
java.io.Writer
cn.taketoday.aot.nativex.BasicJsonWriter.IndentingWriter
- 所有已实现的接口:
Closeable,Flushable,Appendable,AutoCloseable
- 封闭类:
- BasicJsonWriter
-
字段概要
字段 -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明voidclose()voidflush()private BasicJsonWriter.IndentingWriterindent()Increase the indentation level.Increase the indentation level and execute theRunnable.private BasicJsonWriter.IndentingWriteroutdent()Decrease the indentation level.Write the specified text.println()Write a new line.Write the specified text and append a new line.private BasicJsonWriter.IndentingWritervoidwrite(char[] chars, int offset, int length)
-
字段详细资料
-
out
-
singleIndent
-
level
private int level -
currentIndent
-
prependIndent
private boolean prependIndent
-
-
构造器详细资料
-
IndentingWriter
-
-
方法详细资料
-
print
Write the specified text.- 参数:
string- the content to write
-
println
Write the specified text and append a new line.- 参数:
string- the content to write
-
println
Write a new line. -
indented
Increase the indentation level and execute theRunnable. Decrease the indentation level on completion.- 参数:
runnable- the code to execute within an extra indentation level
-
indent
Increase the indentation level. -
outdent
Decrease the indentation level. -
refreshIndent
-
write
public void write(char[] chars, int offset, int length) -
flush
- 指定者:
flush在接口中Flushable- 指定者:
flush在类中Writer- 抛出:
IOException
-
close
- 指定者:
close在接口中AutoCloseable- 指定者:
close在接口中Closeable- 指定者:
close在类中Writer- 抛出:
IOException
-