Class PackingUtils
- java.lang.Object
-
- org.apache.commons.compress.harmony.pack200.PackingUtils
-
public class PackingUtils extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description PackingUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voidconfig(PackingOptions options)static voidcopyThroughJar(java.util.jar.JarFile jarFile, java.io.OutputStream outputStream)When effort is 0, the packer copys through the original jar file without compressionstatic voidcopyThroughJar(java.util.jar.JarInputStream jarInputStream, java.io.OutputStream outputStream)When effort is 0, the packer copies through the original jar input stream without compressionstatic java.util.ListgetPackingFileListFromJar(java.util.jar.JarFile jarFile, boolean keepFileOrder)static java.util.ListgetPackingFileListFromJar(java.util.jar.JarInputStream jarInputStream, boolean keepFileOrder)static voidlog(java.lang.String message)
-
-
-
Constructor Detail
-
PackingUtils
public PackingUtils()
-
-
Method Detail
-
config
public static void config(PackingOptions options) throws java.io.IOException
- Throws:
java.io.IOException
-
log
public static void log(java.lang.String message)
-
copyThroughJar
public static void copyThroughJar(java.util.jar.JarInputStream jarInputStream, java.io.OutputStream outputStream) throws java.io.IOException
When effort is 0, the packer copies through the original jar input stream without compression- Parameters:
jarInputStream- the jar input streamoutputStream- the jar output stream- Throws:
java.io.IOException- If an I/O error occurs.
-
copyThroughJar
public static void copyThroughJar(java.util.jar.JarFile jarFile, java.io.OutputStream outputStream) throws java.io.IOException
When effort is 0, the packer copys through the original jar file without compression- Parameters:
jarFile- the input jar fileoutputStream- the jar output stream- Throws:
java.io.IOException- If an I/O error occurs.
-
getPackingFileListFromJar
public static java.util.List getPackingFileListFromJar(java.util.jar.JarInputStream jarInputStream, boolean keepFileOrder) throws java.io.IOException
- Throws:
java.io.IOException
-
getPackingFileListFromJar
public static java.util.List getPackingFileListFromJar(java.util.jar.JarFile jarFile, boolean keepFileOrder) throws java.io.IOException
- Throws:
java.io.IOException
-
-