public class LineReader
extends java.io.FilterInputStream
Modifier and Type | Field and Description |
---|---|
protected int |
_charsRead |
private static int |
MAX_LEN |
Constructor and Description |
---|
LineReader(java.io.InputStream is) |
Modifier and Type | Method and Description |
---|---|
int |
getCharsRead() |
java.io.InputStream |
getInputStream() |
java.lang.String |
readLine() |
protected java.lang.String |
readLine(java.io.InputStream in)
Read a line of text from the given Stream and return it
as a String.
|
private static final int MAX_LEN
protected int _charsRead
public java.io.InputStream getInputStream()
public int getCharsRead()
public java.lang.String readLine() throws java.io.IOException
java.io.IOException
protected java.lang.String readLine(java.io.InputStream in) throws java.io.IOException
in
- a connected stream which contains the entire
message being sen.java.io.IOException
- if a connection fails or abnormal connection
termination.