dcsimg

How can you combine multiple input streams to be treated as one?

John Zukowski

The SequenceInputStream class in the standard java.io package allows you to combine multiple input streams into one. You can either create a vector of streams, passing the elements() to the constructor, or combine two directly in a constructor.