Class TextStringBuilder.TextStringBuilderReader

  • All Implemented Interfaces:
    java.io.Closeable, java.lang.AutoCloseable, java.lang.Readable
    Enclosing class:
    TextStringBuilder

    class TextStringBuilder.TextStringBuilderReader
    extends java.io.Reader
    Inner class to allow StrBuilder to operate as a reader.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private int mark
      The last mark position.
      private int pos
      The current stream position.
      • Fields inherited from class java.io.Reader

        lock
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void close()
      void mark​(int readAheadLimit)
      boolean markSupported()
      int read()
      int read​(char[] b, int off, int len)
      boolean ready()
      void reset()
      long skip​(long n)
      • Methods inherited from class java.io.Reader

        read, read
      • Methods inherited from class java.lang.Object

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

      • mark

        private int mark
        The last mark position.
      • pos

        private int pos
        The current stream position.
    • Constructor Detail

      • TextStringBuilderReader

        TextStringBuilderReader()
        Default constructor.
    • Method Detail

      • close

        public void close()
        Specified by:
        close in interface java.lang.AutoCloseable
        Specified by:
        close in interface java.io.Closeable
        Specified by:
        close in class java.io.Reader
      • mark

        public void mark​(int readAheadLimit)
        Overrides:
        mark in class java.io.Reader
      • markSupported

        public boolean markSupported()
        Overrides:
        markSupported in class java.io.Reader
      • read

        public int read()
        Overrides:
        read in class java.io.Reader
      • read

        public int read​(char[] b,
                        int off,
                        int len)
        Specified by:
        read in class java.io.Reader
      • ready

        public boolean ready()
        Overrides:
        ready in class java.io.Reader
      • reset

        public void reset()
        Overrides:
        reset in class java.io.Reader
      • skip

        public long skip​(long n)
        Overrides:
        skip in class java.io.Reader