gnu.inet.util
Class LineInputStream
InputStream
gnu.inet.util.LineInputStream
public class LineInputStream
extends InputStream
An input stream that can read lines of input.
protected InputStream | in - The underlying input stream.
|
int | read()
|
int | read(byte[] buf)
|
int | read(byte[] buf, int off, int len)
|
String | readLine() - Read a line of input.
|
in
protected InputStream in
The underlying input stream.
LineInputStream
public LineInputStream(InputStream in)
Constructor using the US-ASCII character encoding.
in
- the underlying input stream
LineInputStream
public LineInputStream(InputStream in,
String encoding)
Constructor.
in
- the underlying input streamencoding
- the character encoding to use
read
public int read()
throws IOException
read
public int read(byte[] buf)
throws IOException
read
public int read(byte[] buf,
int off,
int len)
throws IOException
readLine
public String readLine()
throws IOException
Read a line of input.