Class StreamCharBuffer.StreamCharBufferReader

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

    public final class StreamCharBuffer.StreamCharBufferReader
    extends java.io.Reader
    This is the java.io.Reader implementation for StreamCharBuffer
    • Field Summary

      • Fields inherited from class java.io.Reader

        lock
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void close()  
      StreamCharBuffer getBuffer()  
      int getReadLenLimit​(int askedAmount)  
      int read​(char[] b, int off, int len)  
      boolean ready()  
      • Methods inherited from class java.io.Reader

        mark, markSupported, nullReader, read, read, read, reset, skip, transferTo
      • Methods inherited from class java.lang.Object

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

      • StreamCharBufferReader

        public StreamCharBufferReader​(boolean remove)
    • Method Detail

      • ready

        public boolean ready()
                      throws java.io.IOException
        Overrides:
        ready in class java.io.Reader
        Throws:
        java.io.IOException
      • read

        public final int read​(char[] b,
                              int off,
                              int len)
                       throws java.io.IOException
        Specified by:
        read in class java.io.Reader
        Throws:
        java.io.IOException
      • close

        public void close()
                   throws java.io.IOException
        Specified by:
        close in interface java.lang.AutoCloseable
        Specified by:
        close in interface java.io.Closeable
        Specified by:
        close in class java.io.Reader
        Throws:
        java.io.IOException
      • getReadLenLimit

        public int getReadLenLimit​(int askedAmount)