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

SequencePrinter.java

import java.io.*;
import java.util.*;
import com.macfaq.io.*;


public class SequencePrinter {

  public static void main(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);
    }

  }
 
}