public class Archive extends Object
pack()
is called, to pack the Jar file into a pack200 archive.Constructor and Description |
---|
Archive(JarFile jarFile,
OutputStream outputStream,
PackingOptions options)
Creates an Archive with the given input file and a stream for the output
|
Archive(JarInputStream inputStream,
OutputStream outputStream,
PackingOptions options)
Creates an Archive with streams for the input and output.
|
public Archive(JarInputStream inputStream, OutputStream outputStream, PackingOptions options) throws IOException
inputStream
- TODOoutputStream
- TODOoptions
- - packing options (if null then defaults are used)IOException
- If an I/O error occurs.public Archive(JarFile jarFile, OutputStream outputStream, PackingOptions options) throws IOException
jarFile
- - the input fileoutputStream
- TODOoptions
- - packing options (if null then defaults are used)IOException
- If an I/O error occurs.public void pack() throws Pack200Exception, IOException
Pack200Exception
- TODOIOException
- If an I/O error occurs.Copyright © 2002–2020 The Apache Software Foundation. All rights reserved.