public class Archive extends java.lang.Object
pack()
is called, to pack the Jar file into a pack200 archive.Constructor and Description |
---|
Archive(java.util.jar.JarFile jarFile,
java.io.OutputStream outputStream,
PackingOptions options)
Creates an Archive with the given input file and a stream for the output
|
Archive(java.util.jar.JarInputStream inputStream,
java.io.OutputStream outputStream,
PackingOptions options)
Creates an Archive with streams for the input and output.
|
Modifier and Type | Method and Description |
---|---|
void |
pack()
Pack the archive
|
public Archive(java.util.jar.JarInputStream inputStream, java.io.OutputStream outputStream, PackingOptions options) throws java.io.IOException
inputStream
- TODOoutputStream
- TODOoptions
- - packing options (if null then defaults are used)java.io.IOException
- If an I/O error occurs.public Archive(java.util.jar.JarFile jarFile, java.io.OutputStream outputStream, PackingOptions options) throws java.io.IOException
jarFile
- - the input fileoutputStream
- TODOoptions
- - packing options (if null then defaults are used)java.io.IOException
- If an I/O error occurs.public void pack() throws Pack200Exception, java.io.IOException
Pack200Exception
- TODOjava.io.IOException
- If an I/O error occurs.