SequenceInputStream
The constructor of SequenceInputStream takes a pair of InputStreams and concatenates them together:
- SequenceInputStream in =
- new SequenceInputStream (
- new FileInputStream( file1 ),
- new FileInputStream( file2 ) );
Alternatively, SequenceInputStream takes a Java Enumeration type:
- SequenceInputStream in =
- new SequenceInputStream (
- new FileListEnumerator( args ) );
- where args is an array of command-line arguments and FileListEnumerator is a class that implements the Enumeration interface.