public class MessageInputStream extends 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 |
in| Constructor and Description |
|---|
MessageInputStream(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() |
available, close, skippublic 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(InputStream in)
public int read()
throws IOException
read in class FilterInputStreamIOException - if an I/O error occurspublic int read(byte[] b)
throws IOException
read in class FilterInputStreamIOException - if an I/O error occurspublic int read(byte[] b,
int off,
int len)
throws IOException
read in class FilterInputStreamIOException - if an I/O error occurspublic boolean markSupported()
markSupported in class FilterInputStreampublic void mark(int readlimit)
mark in class FilterInputStreampublic void reset()
throws IOException
reset in class FilterInputStreamIOExceptionCopyright © 2017. All rights reserved.