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  

    Fields inherited from class java.io.Writer

    lock
  • Constructor Summary

    Constructors 
    Constructor Description
    IndentWriter​(java.io.Writer writer)  
    IndentWriter​(java.io.Writer writer, char indentChar, int indentLength)  
  • Method Summary

    Modifier and Type Method Description
    void close()  
    void flush()  
    void indent()  
    void unindent()  
    void write​(char[] cbuf, int off, int len)  
    void writeln​(java.lang.String str)  

    Methods inherited from class java.io.Writer

    append, append, append, nullWriter, write, write, write, write

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

  • 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 class java.io.Writer
      Throws:
      java.io.IOException
    • flush

      public void flush() throws java.io.IOException
      Specified by:
      flush in interface java.io.Flushable
      Specified by:
      flush in class java.io.Writer
      Throws:
      java.io.IOException
    • close

      public void close() throws java.io.IOException
      Specified by:
      close in interface java.lang.AutoCloseable
      Specified by:
      close in interface java.io.Closeable
      Specified by:
      close in class java.io.Writer
      Throws:
      java.io.IOException