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 char
DEFAULT_INDENT_CHAR
static int
DEFAULT_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:
write
in classjava.io.Writer
- Throws:
java.io.IOException
-
flush
public void flush() throws java.io.IOException- Specified by:
flush
in interfacejava.io.Flushable
- Specified by:
flush
in classjava.io.Writer
- Throws:
java.io.IOException
-
close
public void close() throws java.io.IOException- Specified by:
close
in interfacejava.lang.AutoCloseable
- Specified by:
close
in interfacejava.io.Closeable
- Specified by:
close
in classjava.io.Writer
- Throws:
java.io.IOException
-