Class IndentedWriter

  • All Implemented Interfaces:
    java.io.Closeable, java.io.Flushable, java.lang.Appendable, java.lang.AutoCloseable
    Direct Known Subclasses:
    IndentedWriter

    public class IndentedWriter
    extends java.io.FilterWriter
    • Field Summary

      • Fields inherited from class java.io.FilterWriter

        out
      • Fields inherited from class java.io.Writer

        lock
    • Constructor Summary

      Constructors 
      Constructor Description
      IndentedWriter​(java.io.Writer out)  
      IndentedWriter​(java.io.Writer out, java.lang.String indentSpacing)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void downIndent()  
      void print​(boolean x)  
      void print​(byte x)  
      void print​(char x)  
      void print​(double x)  
      void print​(float x)  
      void print​(int x)  
      void print​(long x)  
      void print​(short x)  
      void print​(java.lang.Object x)  
      void print​(java.lang.String s)  
      void println()  
      void println​(boolean x)  
      void println​(byte x)  
      void println​(char x)  
      void println​(double x)  
      void println​(float x)  
      void println​(int x)  
      void println​(long x)  
      void println​(short x)  
      void println​(java.lang.Object x)  
      void println​(java.lang.String s)  
      void upIndent()  
      void write​(char[] chars, int off, int len)  
      void write​(int c)  
      void write​(java.lang.String s, int off, int len)  
      • Methods inherited from class java.io.FilterWriter

        close, flush
      • Methods inherited from class java.io.Writer

        append, append, append, nullWriter, write, write
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • IndentedWriter

        public IndentedWriter​(java.io.Writer out,
                              java.lang.String indentSpacing)
      • IndentedWriter

        public IndentedWriter​(java.io.Writer out)
    • Method Detail

      • upIndent

        public void upIndent()
      • downIndent

        public void downIndent()
      • write

        public void write​(int c)
                   throws java.io.IOException
        Overrides:
        write in class java.io.FilterWriter
        Throws:
        java.io.IOException
      • write

        public void write​(char[] chars,
                          int off,
                          int len)
                   throws java.io.IOException
        Overrides:
        write in class java.io.FilterWriter
        Throws:
        java.io.IOException
      • write

        public void write​(java.lang.String s,
                          int off,
                          int len)
                   throws java.io.IOException
        Overrides:
        write in class java.io.FilterWriter
        Throws:
        java.io.IOException
      • print

        public void print​(java.lang.String s)
                   throws java.io.IOException
        Throws:
        java.io.IOException
      • println

        public void println​(java.lang.String s)
                     throws java.io.IOException
        Throws:
        java.io.IOException
      • print

        public void print​(boolean x)
                   throws java.io.IOException
        Throws:
        java.io.IOException
      • print

        public void print​(byte x)
                   throws java.io.IOException
        Throws:
        java.io.IOException
      • print

        public void print​(char x)
                   throws java.io.IOException
        Throws:
        java.io.IOException
      • print

        public void print​(short x)
                   throws java.io.IOException
        Throws:
        java.io.IOException
      • print

        public void print​(int x)
                   throws java.io.IOException
        Throws:
        java.io.IOException
      • print

        public void print​(long x)
                   throws java.io.IOException
        Throws:
        java.io.IOException
      • print

        public void print​(float x)
                   throws java.io.IOException
        Throws:
        java.io.IOException
      • print

        public void print​(double x)
                   throws java.io.IOException
        Throws:
        java.io.IOException
      • print

        public void print​(java.lang.Object x)
                   throws java.io.IOException
        Throws:
        java.io.IOException
      • println

        public void println​(boolean x)
                     throws java.io.IOException
        Throws:
        java.io.IOException
      • println

        public void println​(byte x)
                     throws java.io.IOException
        Throws:
        java.io.IOException
      • println

        public void println​(char x)
                     throws java.io.IOException
        Throws:
        java.io.IOException
      • println

        public void println​(short x)
                     throws java.io.IOException
        Throws:
        java.io.IOException
      • println

        public void println​(int x)
                     throws java.io.IOException
        Throws:
        java.io.IOException
      • println

        public void println​(long x)
                     throws java.io.IOException
        Throws:
        java.io.IOException
      • println

        public void println​(float x)
                     throws java.io.IOException
        Throws:
        java.io.IOException
      • println

        public void println​(double x)
                     throws java.io.IOException
        Throws:
        java.io.IOException
      • println

        public void println​(java.lang.Object x)
                     throws java.io.IOException
        Throws:
        java.io.IOException
      • println

        public void println()
                     throws java.io.IOException
        Throws:
        java.io.IOException