Class IndentedLineBuffer

  • All Implemented Interfaces:
    java.lang.AutoCloseable, AWriter, Closeable

    public class IndentedLineBuffer
    extends IndentedWriter
    IndentLineBuffer is a buffer that records an indent level and uses that to insert a prefix at each line. It can also insert line numbers at the beginning of lines.
    • Constructor Detail

      • IndentedLineBuffer

        public IndentedLineBuffer()
      • IndentedLineBuffer

        public IndentedLineBuffer​(boolean withLineNumbers)
    • Method Detail

      • getBuffer

        public java.lang.StringBuffer getBuffer()
      • asString

        public java.lang.String asString()
      • append

        public void append​(java.lang.String fmt,
                           java.lang.Object... args)
      • append

        public void append​(char ch)
      • clear

        public void clear()