public class LineInputStream
extends java.io.InputStream
| Modifier and Type | Field and Description |
|---|---|
protected java.io.InputStream |
in
The underlying input stream.
|
| Constructor and Description |
|---|
LineInputStream (java.io.InputStream in)
Constructor using the US-ASCII character encoding.
|
LineInputStream (java.io.InputStream in,
java.lang.String encoding)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
int |
read () |
int |
read (byte[] buf) |
int |
read (byte[] buf,
int off,
int len) |
java.lang.String |
readLine ()
Read a line of input.
|
available, close, mark, markSupported, reset, skipclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitprotected java.io.InputStream in
public LineInputStream(java.io.InputStream in)
in - the underlying input streampublic LineInputStream(java.io.InputStream in, java.lang.String encoding)
in - the underlying input streamencoding - the character encoding to usepublic int read() throws java.io.IOException
read in class java.io.InputStreamjava.io.IOExceptionpublic int read(byte[] buf) throws java.io.IOException
read in class java.io.InputStreamjava.io.IOExceptionpublic int read(byte[] buf, int off, int len) throws java.io.IOException
read in class java.io.InputStreamjava.io.IOExceptionpublic java.lang.String readLine() throws java.io.IOException
java.io.IOException