Class WritableLineReader

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

    public class WritableLineReader
    extends java.io.LineNumberReader
    • 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()  
      int read()  
      int read​(char[] b, int off, int len)  
      boolean ready()  
      void write​(java.lang.String text)
      Note: Not implicitly thread safe.
      • Methods inherited from class java.io.LineNumberReader

        getLineNumber, mark, readLine, reset, setLineNumber, skip
      • Methods inherited from class java.io.BufferedReader

        lines, markSupported
      • 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
    • Constructor Detail

      • WritableLineReader

        public WritableLineReader​(java.io.Reader reader,
                                  int bufferSize)
      • WritableLineReader

        public WritableLineReader​(java.io.Reader reader)
    • Method Detail

      • read

        public int read()
                 throws java.io.IOException
        Overrides:
        read in class java.io.LineNumberReader
        Throws:
        java.io.IOException
      • read

        public int read​(char[] b,
                        int off,
                        int len)
                 throws java.io.IOException
        Overrides:
        read in class java.io.LineNumberReader
        Throws:
        java.io.IOException
      • ready

        public boolean ready()
                      throws java.io.IOException
        Overrides:
        ready in class java.io.BufferedReader
        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
        Overrides:
        close in class java.io.BufferedReader
        Throws:
        java.io.IOException
      • write

        public void write​(java.lang.String text)
                   throws java.io.IOException
        Note: Not implicitly thread safe.
        Parameters:
        text -
        Throws:
        java.io.IOException