question: public static String readAsciiLine ( final InputStream in ) throws IOException { final StringBuilder result = new StringBuilder ( 80 ) ; while ( true ) { final int c = in . read ( ) ; if ( c == - 1 ) { throw new EOFException ( ) ; } else if ( c == '\n' ) { break ; } result . append ( ( char ) c ) ; } final int length = result . length ( ) ; if ( length > 0 && result . charAt ( length - 1 ) == '\r' ) { result . setLength ( length - 1 ) ; } return result . toString ( ) ; }
target:  Returns the ASCII characters up to but not including the next "\r\n", or "\n".