Class IndentBuffer


  • public class IndentBuffer
    extends java.lang.Object
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private java.lang.StringBuffer buffer  
      private int depth  
      private java.lang.String eol  
      private java.lang.String indentation  
      private boolean newLine  
    • Constructor Summary

      Constructors 
      Constructor Description
      IndentBuffer()  
    • Field Detail

      • eol

        private java.lang.String eol
      • indentation

        private java.lang.String indentation
      • buffer

        private java.lang.StringBuffer buffer
      • depth

        private int depth
      • newLine

        private boolean newLine
    • Constructor Detail

      • IndentBuffer

        public IndentBuffer()
    • Method Detail

      • setEol

        public void setEol​(java.lang.String eol)
      • setIndentation

        public void setIndentation​(java.lang.String indentation)
      • write

        public void write​(java.lang.String s)
      • write

        public void write​(char s)
      • newline

        public void newline()
      • indent

        public void indent()
      • deindent

        public void deindent()
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • checkNewLine

        private void checkNewLine()