public class CRLFInputStream
extends java.io.InputStream
| Modifier and Type | Field and Description |
|---|---|
static int |
CR
The CR octet.
|
protected java.io.InputStream |
in
The underlying input stream.
|
static int |
LF
The LF octet.
|
| Constructor and Description |
|---|
CRLFInputStream (java.io.InputStream in)
Constructs a CR/LF input stream connected to the specified input
stream.
|
| Modifier and Type | Method and Description |
|---|---|
int |
read ()
Reads the next byte of data from this input stream.
|
int |
read (byte[] b)
Reads up to b.length bytes of data from this input stream into
an array of bytes.
|
int |
read (byte[] b,
int off,
int len)
Reads up to len bytes of data from this input stream into an
array of bytes, starting at the specified offset.
|
available, close, mark, markSupported, reset, skipclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitpublic static final int CR
public static final int LF
protected java.io.InputStream in
public CRLFInputStream(java.io.InputStream in)
public int read() throws java.io.IOException
read in class java.io.InputStreamjava.io.IOException - if an I/O error occurspublic int read(byte[] b) throws java.io.IOException
read in class java.io.InputStreamjava.io.IOException - if an I/O error occurspublic int read(byte[] b, int off, int len) throws java.io.IOException
read in class java.io.InputStreamjava.io.IOException - if an I/O error occurs