Class LineWrapper.RecordingAppendable

  • All Implemented Interfaces:
    java.lang.Appendable
    Enclosing class:
    LineWrapper

    static final class LineWrapper.RecordingAppendable
    extends java.lang.Object
    implements java.lang.Appendable
    A delegating Appendable that records info about the chars passing through it.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private java.lang.Appendable delegate  
      (package private) char lastChar  
    • Constructor Summary

      Constructors 
      Constructor Description
      RecordingAppendable​(java.lang.Appendable delegate)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.Appendable append​(char c)  
      java.lang.Appendable append​(java.lang.CharSequence csq)  
      java.lang.Appendable append​(java.lang.CharSequence csq, int start, int end)  
      • Methods inherited from class java.lang.Object

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

      • delegate

        private final java.lang.Appendable delegate
      • lastChar

        char lastChar
    • Constructor Detail

      • RecordingAppendable

        RecordingAppendable​(java.lang.Appendable delegate)
    • Method Detail

      • append

        public java.lang.Appendable append​(java.lang.CharSequence csq)
                                    throws java.io.IOException
        Specified by:
        append in interface java.lang.Appendable
        Throws:
        java.io.IOException
      • append

        public java.lang.Appendable append​(java.lang.CharSequence csq,
                                           int start,
                                           int end)
                                    throws java.io.IOException
        Specified by:
        append in interface java.lang.Appendable
        Throws:
        java.io.IOException
      • append

        public java.lang.Appendable append​(char c)
                                    throws java.io.IOException
        Specified by:
        append in interface java.lang.Appendable
        Throws:
        java.io.IOException