Class Pack200UnpackerAdapter
java.lang.Object
org.apache.commons.compress.harmony.pack200.Pack200Adapter
org.apache.commons.compress.harmony.unpack200.Pack200UnpackerAdapter
- All Implemented Interfaces:
Pack200.Unpacker
This class provides the binding between the standard Pack200 interface and the internal interface for (un)packing.
-
Field Summary
Fields inherited from class org.apache.commons.compress.harmony.pack200.Pack200Adapter
DEFAULT_BUFFER_SIZEFields inherited from interface org.apache.commons.compress.java.util.jar.Pack200.Unpacker
DEFLATE_HINT, FALSE, KEEP, PROGRESS, TRUE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidunpack(File file, JarOutputStream out) Unpacks the contents of the specifiedFileto the specified JAR output stream.voidunpack(InputStream in, JarOutputStream out) Unpacks the specified stream to the specified JAR output stream.Methods inherited from class org.apache.commons.compress.harmony.pack200.Pack200Adapter
addPropertyChangeListener, completed, firePropertyChange, properties, removePropertyChangeListenerMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.commons.compress.java.util.jar.Pack200.Unpacker
addPropertyChangeListener, properties, removePropertyChangeListener
-
Constructor Details
-
Pack200UnpackerAdapter
public Pack200UnpackerAdapter()
-
-
Method Details
-
unpack
Description copied from interface:Pack200.UnpackerUnpacks the contents of the specifiedFileto the specified JAR output stream.- Specified by:
unpackin interfacePack200.Unpacker- Parameters:
file- file to uncompress.out- JAR output stream of uncompressed data.- Throws:
IOException- if I/O exception occurs.
-
unpack
Description copied from interface:Pack200.UnpackerUnpacks the specified stream to the specified JAR output stream.- Specified by:
unpackin interfacePack200.Unpacker- Parameters:
in- stream to uncompress, preferably aBoundedInputStream.out- JAR output stream of uncompressed data.- Throws:
IOException- if I/O exception occurs.
-