Class Options.NativeBuffer

  • All Implemented Interfaces:
    Options.Buffer, java.lang.Appendable, java.lang.CharSequence
    Enclosing class:
    Options

    public static class Options.NativeBuffer
    extends java.lang.Object
    implements Options.Buffer
    This buffer will write into the underlying writer. It won't be any visible output and toString() returns an empty string.
    Since:
    2.3.2
    • 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)  
      char charAt​(int index)  
      int length()  
      java.lang.CharSequence subSequence​(int start, int end)  
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
      • Methods inherited from interface java.lang.CharSequence

        chars, codePoints
    • Constructor Detail

      • NativeBuffer

        public NativeBuffer​(java.io.Writer writer)
        Creates a new Options.NativeBuffer.
        Parameters:
        writer - A writer. Required.
    • 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
      • length

        public int length()
        Specified by:
        length in interface java.lang.CharSequence
      • charAt

        public char charAt​(int index)
        Specified by:
        charAt in interface java.lang.CharSequence
      • subSequence

        public java.lang.CharSequence subSequence​(int start,
                                                  int end)
        Specified by:
        subSequence in interface java.lang.CharSequence
      • toString

        public java.lang.String toString()
        Specified by:
        toString in interface java.lang.CharSequence
        Overrides:
        toString in class java.lang.Object