Package kieker.analysis.generic.sink
Class IndentWriter
java.lang.Object
java.io.Writer
kieker.analysis.generic.sink.IndentWriter
- All Implemented Interfaces:
java.io.Closeable,java.io.Flushable,java.lang.Appendable,java.lang.AutoCloseable
public class IndentWriter
extends java.io.Writer
- Since:
- 1.14
- Author:
- Sören Henning
-
Field Summary
Fields Modifier and Type Field Description static charDEFAULT_INDENT_CHARstatic intDEFAULT_INDENT_LENGTH -
Constructor Summary
Constructors Constructor Description IndentWriter(java.io.Writer writer)IndentWriter(java.io.Writer writer, char indentChar, int indentLength) -
Method Summary
-
Field Details
-
DEFAULT_INDENT_CHAR
public static final char DEFAULT_INDENT_CHAR- See Also:
- Constant Field Values
-
DEFAULT_INDENT_LENGTH
public static final int DEFAULT_INDENT_LENGTH- See Also:
- Constant Field Values
-
-
Constructor Details
-
IndentWriter
public IndentWriter(java.io.Writer writer) -
IndentWriter
public IndentWriter(java.io.Writer writer, char indentChar, int indentLength)
-
-
Method Details
-
indent
public void indent() -
unindent
public void unindent() -
writeln
public void writeln(java.lang.String str) throws java.io.IOException- Throws:
java.io.IOException
-
write
public void write(char[] cbuf, int off, int len) throws java.io.IOException- Specified by:
writein classjava.io.Writer- Throws:
java.io.IOException
-
flush
public void flush() throws java.io.IOException- Specified by:
flushin interfacejava.io.Flushable- Specified by:
flushin classjava.io.Writer- Throws:
java.io.IOException
-
close
public void close() throws java.io.IOException- Specified by:
closein interfacejava.lang.AutoCloseable- Specified by:
closein interfacejava.io.Closeable- Specified by:
closein classjava.io.Writer- Throws:
java.io.IOException
-