public abstract class LineReader
extends java.lang.Object
implements java.io.Closeable
| Modifier | Constructor and Description | 
|---|---|
| protected  | LineReader(java.io.InputStream in)Constructor. | 
| Modifier and Type | Method and Description | 
|---|---|
| void | close() | 
| static LineReader | createArrayLineReader(java.lang.String[] lines)Returns a LineReader instance that reads lines from an array. | 
| static LineReader | createAsciiLineReader(java.io.InputStream in)Returns a LineReader instance that just uses the lower 7 bits
 of each input byte for character values. | 
| abstract java.lang.String | readLine()Returns the next non-empty line of text from the input stream. | 
protected LineReader(java.io.InputStream in)
in - underlying input streampublic abstract java.lang.String readLine()
                                   throws java.io.IOException
java.io.IOExceptionpublic void close()
           throws java.io.IOException
close in interface java.io.Closeableclose in interface java.lang.AutoCloseablejava.io.IOExceptionpublic static LineReader createAsciiLineReader(java.io.InputStream in)
in - input streampublic static LineReader createArrayLineReader(java.lang.String[] lines)
lines - line array