public class PipedInputStream extends InputStream
Modifier and Type | Field and Description |
---|---|
protected byte[] |
buffer
buffer
|
protected int |
in
in
|
protected int |
out
out
|
protected static int |
PIPE_SIZE
PIPE_SIZE
|
Constructor and Description |
---|
PipedInputStream()
PipedInputStream
|
PipedInputStream(PipedOutputStream pipedoutputstream)
PipedInputStream
|
Modifier and Type | Method and Description |
---|---|
int |
available() |
void |
close() |
void |
connect(PipedOutputStream pipedoutputstream) |
int |
read() |
int |
read(byte[] abyte0,
int i,
int j)
Read byte data until there is no more available.
|
protected void |
receive(int i) |
mark, markSupported, read, reset, skip
protected static final int PIPE_SIZE
protected byte[] buffer
protected int in
protected int out
public PipedInputStream()
public PipedInputStream(PipedOutputStream pipedoutputstream) throws IOException
pipedoutputstream
- ?IOException
- ?public int available() throws IOException
available
in class InputStream
IOException
- ?public void close() throws IOException
close
in class InputStream
IOException
- ?public void connect(PipedOutputStream pipedoutputstream) throws IOException
pipedoutputstream
- ?IOException
- ?public int read() throws IOException
read
in class InputStream
IOException
- ?public int read(byte[] abyte0, int i, int j) throws IOException
InputStream
read
in class InputStream
abyte0
- ?i
- ?j
- ?IOException
- ?protected void receive(int i) throws IOException
i
- ?IOException
- ?