|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.google.common.io.LineReader
@Beta public final class LineReader
A class for reading lines of text. Provides the same functionality
as BufferedReader.readLine() but for all Readable
objects, not just instances of Reader.
| Constructor Summary | |
|---|---|
LineReader(java.lang.Readable readable)
Creates a new instance that will read lines from the given Readable object. |
|
| Method Summary | |
|---|---|
java.lang.String |
readLine()
Reads a line of text. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public LineReader(java.lang.Readable readable)
Readable object.
| Method Detail |
|---|
public java.lang.String readLine()
throws java.io.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.
java.io.IOException - if an I/O error occurs
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||