Code example for JarInputStream

Methods: close

0
                    "Must specify both input and output streams"); 
        completed(0); 
        PackingOptions options = new PackingOptions();
 
        try { 
            new org.apache.harmony.pack200.Archive(in, out, options).pack();
        } catch (Pack200Exception e) {
            throw new IOException("Failed to pack Jar:" + String.valueOf(e));
        } 
        completed(1); 
        in.close();
    } 
 
    protected void firePropertyChange(String propertyName, Object oldValue,
            Object newValue) {
        super.firePropertyChange(propertyName, oldValue, newValue);
        if(newValue != null && !newValue.equals(oldValue)) {
            if (propertyName.startsWith(CLASS_ATTRIBUTE_PFX)) {
                String attributeName = propertyName.substring(CLASS_ATTRIBUTE_PFX.length());
                options.addClassAttributeAction(attributeName, (String)newValue);
            } else if (propertyName.startsWith(CODE_ATTRIBUTE_PFX)) {