Class LineReader

    • Field Detail

      • _charsRead

        protected int _charsRead
    • Constructor Detail

    • Method Detail

      • getCharsRead

        public int getCharsRead()
      • readLine

        protected String readLine​(InputStream in)
                           throws IOException
        Read a line of text from the given Stream and return it as a String. Assumes lines end in CRLF.
        Parameters:
        in - a connected stream which contains the entire message being sen.
        Returns:
        the next line read from the stream.
        Throws:
        IOException - if a connection fails or abnormal connection termination.