FileDocCategorySizeDatePackage
FileInflater.javaAPI DocExample825Sun Mar 28 19:07:18 BST 1999None

FileInflater

public class FileInflater extends Object

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


    for (int i = 0; i < args.length; i++) {
      if (args[i].toLowerCase().endsWith(FileDeflater.DEFLATE_SUFFIX)) {
        try {
          FileInputStream fin = new FileInputStream(args[i]);      
          InflaterInputStream iis = new InflaterInputStream(fin);
          FileOutputStream fout = new FileOutputStream(
           args[i].substring(0, args[i].length()-4));
          StreamCopier.copy(iis, fout);
          fout.close();
        }
        catch (IOException e) {
          System.err.println(e);     
        }
      }
      else {
        System.err.println(args[i] + " does not appear to be a deflated file.");
      }
    }