Closeable, AutoCloseablepublic final class LineInputStream extends FilterInputStream
DataInputStream.readLine(). Expected use is to read
lines as String objects from a RFC822 stream.
It is implemented as a FilterInputStream, so one can just wrap
this class around any input stream and read bytes from this filter.in| Constructor | Description |
|---|---|
LineInputStream(InputStream in) |
| Modifier and Type | Method | Description |
|---|---|---|
String |
readLine() |
Read a line containing only ASCII characters from the input
stream.
|
available, close, mark, markSupported, read, read, read, reset, skipreadAllBytes, readNBytes, transferTopublic LineInputStream(InputStream in)
public String readLine() throws IOException
This class is similar to the deprecated
DataInputStream.readLine()
IOException - if an I/O error occurs.Copyright © 2018 Oracle. All rights reserved.