Class TextBuffer.BufferReader

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

    private static final class TextBuffer.BufferReader
    extends java.io.Reader
    • Constructor Summary

      Constructors 
      Constructor Description
      BufferReader​(java.util.ArrayList<char[]> segs, char[] currSeg, int currSegLen)  
    • Method Summary

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

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

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

      • _segments

        java.util.ArrayList<char[]> _segments
      • _currentSegment

        char[] _currentSegment
      • _currentLength

        final int _currentLength
      • _segmentIndex

        int _segmentIndex
      • _segmentOffset

        int _segmentOffset
      • _currentOffset

        int _currentOffset
    • Constructor Detail

      • BufferReader

        public BufferReader​(java.util.ArrayList<char[]> segs,
                            char[] currSeg,
                            int currSegLen)
    • 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 x)
                  throws java.io.IOException
        Overrides:
        mark in class java.io.Reader
        Throws:
        java.io.IOException
      • markSupported

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

        public int read​(char[] cbuf,
                        int offset,
                        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()
                   throws java.io.IOException
        Overrides:
        reset in class java.io.Reader
        Throws:
        java.io.IOException
      • skip

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