public class MessageInputStream
extends java.io.FilterInputStream
read
when the stream termination
sequence LF,END,LF is read from the underlying stream.Modifier and Type | Field and Description |
---|---|
protected int |
buf1 |
protected int |
buf2 |
static int |
END
The stream termination octet ('.').
|
protected boolean |
eof |
static int |
LF
The line termination octet ('\n').
|
protected int |
markBuf1 |
protected int |
markBuf2 |
Constructor and Description |
---|
MessageInputStream(java.io.InputStream in)
Constructs a message input stream connected to the specified input stream.
|
Modifier and Type | Method and Description |
---|---|
void |
mark(int readlimit) |
boolean |
markSupported() |
int |
read()
Reads the next byte of data from this message 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.
|
void |
reset() |
public static final int END
public static final int LF
protected boolean eof
protected int buf1
protected int buf2
protected int markBuf1
protected int markBuf2
public MessageInputStream(java.io.InputStream in)
public int read() throws java.io.IOException
read
in class java.io.FilterInputStream
java.io.IOException
- if an I/O error occurspublic int read(byte[] b) throws java.io.IOException
read
in class java.io.FilterInputStream
java.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.FilterInputStream
java.io.IOException
- if an I/O error occurspublic boolean markSupported()
markSupported
in class java.io.FilterInputStream
public void mark(int readlimit)
mark
in class java.io.FilterInputStream
public void reset() throws java.io.IOException
reset
in class java.io.FilterInputStream
java.io.IOException