FileDocCategorySizeDatePackage
SequencePrinter.javaAPI DocExample501Sat Feb 04 08:49:12 GMT 2006None

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++) {
       FileInputStream fin = new FileInputStream(args[i]);
       theStreams.addElement(fin);
    }

    InputStream in = new SequenceInputStream(theStreams.elements());
    for (int i = in.read(); i != -1; i = in.read()) {
      System.out.write(i);
    }