Class StringBuilderScribe

  • All Implemented Interfaces:
    Scribe

    public final class StringBuilderScribe
    extends java.lang.Object
    implements Scribe
    • Constructor Summary

      Constructors 
      Constructor Description
      StringBuilderScribe​(java.lang.String indent)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      Scribe append​(java.lang.CharSequence charSequence)
      Writes the given CharSequence and returns this instance.
      Scribe indented()
      Returns a new Scribe that adds an indentation to each line.
      Scribe newLine()
      Starts a new line with the current indentation and returns this instance.
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

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

      • StringBuilderScribe

        public StringBuilderScribe​(java.lang.String indent)
    • Method Detail

      • indented

        public Scribe indented()
        Description copied from interface: Scribe
        Returns a new Scribe that adds an indentation to each line.
        Specified by:
        indented in interface Scribe
      • append

        public Scribe append​(java.lang.CharSequence charSequence)
        Description copied from interface: Scribe
        Writes the given CharSequence and returns this instance.
        Specified by:
        append in interface Scribe
      • newLine

        public Scribe newLine()
        Description copied from interface: Scribe
        Starts a new line with the current indentation and returns this instance.
        Specified by:
        newLine in interface Scribe
      • toString

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