public class Pack200PackerAdapter extends Pack200Adapter implements Pack200.Packer
DEFAULT_BUFFER_SIZE
CLASS_ATTRIBUTE_PFX, CODE_ATTRIBUTE_PFX, DEFLATE_HINT, EFFORT, ERROR, FALSE, FIELD_ATTRIBUTE_PFX, KEEP, KEEP_FILE_ORDER, LATEST, METHOD_ATTRIBUTE_PFX, MODIFICATION_TIME, PASS, PASS_FILE_PFX, PROGRESS, SEGMENT_LIMIT, STRIP, TRUE, UNKNOWN_ATTRIBUTE
Constructor and Description |
---|
Pack200PackerAdapter() |
Modifier and Type | Method and Description |
---|---|
protected void |
firePropertyChange(String propertyName,
Object oldValue,
Object newValue) |
void |
pack(JarFile file,
OutputStream out)
Pack the specified JAR file to the specified output stream.
|
void |
pack(JarInputStream in,
OutputStream out)
Pack the data from the specified jar input stream to the specified
output stream.
|
addPropertyChangeListener, completed, properties, removePropertyChangeListener
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addPropertyChangeListener, properties, removePropertyChangeListener
public Pack200PackerAdapter()
public void pack(JarFile file, OutputStream out) throws IOException
Pack200.Packer
pack
in interface Pack200.Packer
file
- JAR file to be compressed.out
- stream of compressed data.IOException
- if I/O exception occurs.public void pack(JarInputStream in, OutputStream out) throws IOException
Pack200.Packer
pack
in interface Pack200.Packer
in
- stream of uncompressed JAR data.out
- stream of compressed data.IOException
- if I/O exception occurs.protected void firePropertyChange(String propertyName, Object oldValue, Object newValue)
firePropertyChange
in class Pack200Adapter
Copyright © 2002–2022 The Apache Software Foundation. All rights reserved.