java.io.SequenceInputStream
A SequenceInputStream represents the logical concatenation of other input streams. It starts out with an ordered collection of input streams and reads from the first one until the end of the file is reached, whereupon it reads from the second one, and so on, until the end of the file is reached on the last of the contained input streams.
Implemented Interfaces:
Closeable
AutoCloseable
SequenceInputStream extends InputStream
Some methods of SequenceInputStream class
available(): This method returns an estimate of the number of bytes that can be read (or skipped over) from the current underlying input stream without blocking the next invocation of a method for the current underlying input stream.
close(): This method closes this input stream and releases any system resources associated with the stream.
read(): This method reads the next byte of data from this input stream.
read(byte[], int, int): This method reads up to len bytes of data from this input stream into an array of bytes.
SequenceInputStream(InputStream, InputStream): This method initializes a newly created SequenceInputStreamby remembering the two arguments, which will be read in order, first s1 and then s2, to provide the bytes to be read from this SequenceInputStream.
SequenceInputStream(Enumeration): This method initializes a newly created SequenceInputStream by remembering the argument, which must be an Enumeration that produces objects whose run-time type is InputStream.
No comments:
Post a Comment