@Beta public final class LineReader extends Object
BufferedReader.readLine()but for all
Readableobjects, not just instances of
|Constructor and Description|
Creates a new instance that will read lines from the given
public LineReader(Readable readable)
public String readLine() throws IOException
'\n'), a carriage return (
'\r'), or a carriage return followed immediately by a linefeed (
Stringcontaining the contents of the line, not including any line-termination characters, or
nullif the end of the stream has been reached.
IOException- if an I/O error occurs
Copyright © 2010-2013. All Rights Reserved.