public class Pack200PackerAdapter extends Pack200Adapter implements Pack200.Packer
DEFAULT_BUFFER_SIZECLASS_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, removePropertyChangeListenerclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddPropertyChangeListener, properties, removePropertyChangeListenerpublic Pack200PackerAdapter()
public void pack(JarFile file, OutputStream out) throws IOException
Pack200.Packerpack in interface Pack200.Packerfile - 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.Packerpack in interface Pack200.Packerin - 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 Pack200AdapterCopyright © 2002–2020 The Apache Software Foundation. All rights reserved.