Public class PipedInputStream extends InputStream
Constructor | Description |
---|---|
PipedInputStream() | The function of this constructor is to create the piped input stream instance and not connected with piped output stream. |
PipedInputStream(PipedOutputStream src) | The function of this constructor is to create the piped input stream instance which is connected to the represented piped output stream. |
PipedInputStream(int pipeSize) | The function of this constructor is to create the piped input stream instance with specified size of buffer or pipe. |
PipedInputStream(PipedOutputStream src, int pipeSize) | The function of this constructor is to create the piped input stream instance with specified size of buffer or pipe with the connection to piped output stream. |
Method | Description |
---|---|
void close () | The function of this method is to close the present stream and associated to input stream systems resources are released. |
void connect(pipedOutputStream src) | The function of this method is to connect the piped input stream with represented piped output stream. |
int read(byte[] b, int off, int n) | By using this method it reads the data up to ‘n’ bytes from the piped input stream into array of the bytes. |
int read() | The function of this method is to read one byte of data from this stream. |