FileDocCategorySizeDatePackage
Packer200.javaAPI DocExample619Fri Feb 10 13:20:26 GMT 2006None

Packer200

public class Packer200 extends Object

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

    
    OutputStream out = null;
    try {
      JarFile f = new JarFile(args[0]);
      Pack200.Packer packer = Pack200.newPacker();
      out = new FileOutputStream(args[0] + ".pack");
      packer.pack(f, out);
    } 
    catch (IOException ex) {
      ex.printStackTrace();
    }
    finally {
      if (out != null) {
        try {
          out.close();
        } 
        catch (IOException ex) {
          System.err.println("Error closing file: " + ex.getMessage());
        }
      }
    }