Closeable, AutoCloseablepublic class LineReader extends FilterInputStream
| Modifier and Type | Field | Description |
|---|---|---|
protected int |
_charsRead |
in| Constructor | Description |
|---|---|
LineReader(InputStream is) |
| Modifier and Type | Method | Description |
|---|---|---|
int |
getCharsRead() |
|
InputStream |
getInputStream() |
|
String |
readLine() |
|
protected String |
readLine(InputStream in) |
Read a line of text from the given Stream and return it
as a String.
|
available, close, mark, markSupported, read, read, read, reset, skipreadAllBytes, readNBytes, transferTopublic LineReader(InputStream is)
public InputStream getInputStream()
public int getCharsRead()
public String readLine() throws IOException
IOExceptionprotected String readLine(InputStream in) throws IOException
in - a connected stream which contains the entire
message being sen.IOException - if a connection fails or abnormal connection
termination.Copyright © 2018. All rights reserved.