Module org.hsqldb

Class LineReader


  • public class LineReader
    extends java.lang.Object
    A converter for InputStream to return String objects using the given charset for conversion. The readLine() method returns the next string excluding carriage-return and line-feed characters. No other character is excluded. A carriage-return followed by a line-feed is treated as a single end-of-line marker. Otherwise, each carriage-return or line-feed is treated as an end-of_line marker.
    Since:
    2.0.1
    Author:
    Fred Toussi (fredt@users dot sourceforge.net)
    • Constructor Summary

      Constructors 
      Constructor Description
      LineReader​(java.io.InputStream stream, java.nio.charset.Charset charset)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void close()  
      java.lang.String readLine()  
      • Methods inherited from class java.lang.Object

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

      • LineReader

        public LineReader​(java.io.InputStream stream,
                          java.nio.charset.Charset charset)
    • Method Detail

      • readLine

        public java.lang.String readLine()
                                  throws java.io.IOException
        Throws:
        java.io.IOException
      • close

        public void close()
                   throws java.io.IOException
        Throws:
        java.io.IOException