Public abstract class PipedReader extends Reader
Constructor | Description |
---|---|
PipedReader() | The function of this constructor is to create the piped reader instance. |
PipedReader(int pipeSize) | The function of this constructor is to create the piped reader instance with specified size of buffer or pipe. |
PipedReader(PipedWriter src, int pipeSize) | The function of this constructor is to create the piped reader instance with specified size of buffer or pipe with the connection to piped writer. |
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(pipedWriter src) | The function of this method is to connect the piped reader is with piped writer. |
int read(Char[] buf, int off, int n) | By using this method it reads the data up to ‘n’ bytes from the piped stream into an array of characters. |
int read() | The function of this method is to read only one character. |