FileDocCategorySizeDatePackage
SequencePrinter.javaAPI DocExample662Sun Mar 28 19:07:04 BST 1999None

SequencePrinter

public class SequencePrinter extends Object

Fields Summary
Constructors Summary
Methods Summary
public static voidmain(java.lang.String[] args)


    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);
    }