public class LineReader extends FilterInputStream
| Modifier and Type | Field and Description |
|---|---|
protected int |
_charsRead |
in| Constructor and Description |
|---|
LineReader(InputStream is) |
| Modifier and Type | Method and 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, skippublic 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 © 2013. All Rights Reserved.