Public class SequenceInputStream extends InputStream
Constructor | Description |
---|---|
SequenceInputStream (Enumeration<? extends InputStream>e) | The function of this constructor is to create the SequenceInputStream instance and by enumeration which produces the objects represents the run-time of the input stream. |
SequenceInputStream (InputStream s1, InputStream s2) | The function of this constructor is to create the SequenceInputStream instance and providing the input streams s1, s2 to read bytes from it in order. |
Method | Description |
---|---|
void close () | The function of this method is to close the present stream and associated to input stream systems resources are released. |
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. |