java.io.SequenceInputStream (JDK 1.0)
This class provides a way of seamlessly concatenating the data from two or more input streams. It provides an InputStream interface to a sequence of InputStream objects. Data are read from the streams in the order in which the streams are specified. When the end of one stream is reached, data are automatically read from the next stream. This class might be useful, for example, when implementing an "include file" facility for a parser of some sort.
public classSequenceInputStreamextends InputStream { //Public ConstructorspublicSequenceInputStream(Enumeratione); publicSequenceInputStream(InputStreams1, InputStreams2); //Public Instance Methods1.1 public intavailable() throws IOException; //Overrides InputStreampublic voidclose() throws IOException; //Overrides InputStreampublic intread() throws IOException; //Defines InputStreampublic intread(byte[]buf, intpos, intlen) throws IOException; //Overrides InputStream}
Hierarchy:
Object->InputStream->SequenceInputStream