public class PipedInputStream extends InputStream
Modifier and Type | Field and Description |
---|---|
protected byte[] |
buffer
The buffer in which bytes are stored.
|
protected int |
in
The index where the next byte will be stored.
|
protected int |
out
The index where the next byte will be retrieved.
|
protected static int |
PIPE_SIZE
The (default) size of the pipe buffer.
|
Constructor and Description |
---|
PipedInputStream() |
PipedInputStream(PipedOutputStream src) |
Modifier and Type | Method and Description |
---|---|
int |
available() |
void |
close() |
void |
connect(PipedOutputStream src) |
int |
read() |
int |
read(byte[] buffer,
int offset,
int count) |
protected void |
receive(int oneByte) |
mark, markSupported, read, reset, skip
protected static final int PIPE_SIZE
protected byte[] buffer
protected int in
protected int out
public PipedInputStream(PipedOutputStream src) throws IOException
IOException
public PipedInputStream()
public void connect(PipedOutputStream src) throws IOException
IOException
public int available() throws IOException
available
in class InputStream
IOException
public void close() throws IOException
close
in class InputStream
IOException
public int read(byte[] buffer, int offset, int count) throws IOException
read
in class InputStream
IOException
public int read() throws IOException
read
in class InputStream
IOException
protected void receive(int oneByte) throws IOException
IOException