Vector theStreams = new Vector();
for (int i = 0; i < args.length; i++) {
try {
FileInputStream fin = new FileInputStream(args[i]);
theStreams.addElement(fin);
}
catch (IOException e) {
System.err.println(e);
}
}
SequenceInputStream sin = new SequenceInputStream(theStreams.elements());
try {
StreamCopier.copy(sin, System.out);
}
catch (IOException e) {
System.err.println(e);
}