FileDocCategorySizeDatePackage
GZipper.javaAPI DocExample632Sun Mar 28 19:07:20 BST 1999None

GZipper

public class GZipper extends Object

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


       

    for (int i = 0; i < args.length; i++) {
      try {
        FileInputStream fin = new FileInputStream(args[i]);      
        FileOutputStream fout = new FileOutputStream(args[i] + GZIP_SUFFIX);
        GZIPOutputStream gzout = new GZIPOutputStream(fout);
        StreamCopier.copy(fin, gzout);
        gzout.close();
      }
      catch (IOException e) {
        System.err.println(e);     
      }
    }