Class StrBuilder.StrBuilderReader

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

    class StrBuilder.StrBuilderReader
    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
    • Constructor Summary

      Constructors 
      Constructor Description
      StrBuilderReader()
      Default constructor.
    • 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

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

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

      • pos

        private int pos
        The current stream position.
      • mark

        private int mark
        The last mark position.
    • Constructor Detail

      • StrBuilderReader

        StrBuilderReader()
        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
      • 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
      • skip

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

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

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

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

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