FileDocCategorySizeDatePackage
FileTyper.javaAPI DocExample497Fri Feb 03 14:45:20 GMT 2006None

FileTyper

public class FileTyper extends Object

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

    if (args.length != 1) {
      System.err.println("Usage: java FileTyper filename");
      return;
    }
    typeFile(args[0]);
  
public static voidtypeFile(java.lang.String filename)

    FileInputStream fin = new FileInputStream(filename);
    try {
        StreamCopier.copy(fin, System.out);
    }
    finally {
      fin.close();
    }