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