public class PipedInputStream extends InputStream
| Modifier and Type | Field and Description |
|---|---|
protected byte[] |
buffer |
protected int |
in |
protected int |
out |
protected static int |
PIPE_SIZE |
| Constructor and Description |
|---|
PipedInputStream() |
PipedInputStream(int pipeSize) |
PipedInputStream(PipedOutputStream src) |
PipedInputStream(PipedOutputStream src,
int pipeSize) |
| Modifier and Type | Method and Description |
|---|---|
int |
available() |
void |
close() |
void |
connect(PipedOutputStream src) |
int |
read() |
int |
read(byte[] b,
int off,
int len) |
protected void |
receive(int b) |
mark, markSupported, read, reset, skipprotected static final int PIPE_SIZE
protected byte[] buffer
protected int in
protected int out
public PipedInputStream(PipedOutputStream src) throws IOException
IOExceptionpublic PipedInputStream(PipedOutputStream src, int pipeSize) throws IOException
IOExceptionpublic PipedInputStream()
public PipedInputStream(int pipeSize)
public void connect(PipedOutputStream src) throws IOException
IOExceptionprotected void receive(int b)
throws IOException
IOExceptionpublic int read()
throws IOException
read in class InputStreamIOExceptionpublic int read(byte[] b,
int off,
int len)
throws IOException
read in class InputStreamIOExceptionpublic int available()
throws IOException
available in class InputStreamIOExceptionpublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableclose in class InputStreamIOExceptionCopyright © 2015. All rights reserved.