Class CompositeInputStream

java.lang.Object
java.io.InputStream
VASSAL.tools.io.CompositeInputStream
All Implemented Interfaces:
Closeable, AutoCloseable

public class CompositeInputStream extends InputStream
An InputStream which concatenates other InputStreams. As with SequenceInputStream, the first stream is read until EOF, followed by the second, and so on, until all input streams are exhausted. Note: SequenceInputStream.available() returns only the number of bytes available from the current stream in the sequence, which makes it difficult to efficiently allocate a buffer into which to read the bytes.
Since:
3.1.0
Author:
Joel Uckelman
See Also:
SequenceInputStream