📅  最后修改于: 2020-11-15 02:52:00             🧑  作者: Mango
Java.io.SequenceInputStream类表示其他输入流的逻辑串联。它从输入流的有序集合开始,从第一个开始读取,直到到达文件末尾,然后从第二个开始读取,依此类推,直到在最后一个包含的输入流中到达文件末尾。
以下是Java.io.SequenceInputStream类的声明-
public class SequenceInputStream
extends InputStream
Sr.No. | Constructor & Description |
---|---|
1 |
SequenceInputStream(Enumeration extends InputStream> e) This initializes a newly created SequenceInputStream by remembering the argument, which must be an Enumeration that produces objects whose run-time type is InputStream. |
2 |
SequenceInputStream(InputStream s1, InputStream s2) This initializes a newly created SequenceInputStream by 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. |
Sr.No. | Method & Description |
---|---|
1 | int 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 by the next invocation of a method for the current underlying input stream. |
2 | void close()
This method closes this input stream and releases any system resources associated with the stream. |
3 | int read()
This method reads the next byte of data from this input stream. |
4 | int read(byte[] b, int off, int len)
This method reads up to len bytes of data from this input stream into an array of bytes. |
此类从以下类继承方法-