Class PackingUtils
java.lang.Object
org.apache.commons.compress.harmony.pack200.PackingUtils
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
config
(PackingOptions options) static void
copyThroughJar
(JarFile jarFile, OutputStream outputStream) When effort is 0, the packer copys through the original jar file without compressionstatic void
copyThroughJar
(JarInputStream jarInputStream, OutputStream outputStream) When effort is 0, the packer copies through the original jar input stream without compressionstatic List<org.apache.commons.compress.harmony.pack200.Archive.PackingFile>
getPackingFileListFromJar
(JarFile jarFile, boolean keepFileOrder) static List<org.apache.commons.compress.harmony.pack200.Archive.PackingFile>
getPackingFileListFromJar
(JarInputStream jarInputStream, boolean keepFileOrder) static void
-
Constructor Details
-
PackingUtils
public PackingUtils()
-
-
Method Details
-
config
- Throws:
IOException
-
copyThroughJar
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:
IOException
- If an I/O error occurs.
-
copyThroughJar
public static void copyThroughJar(JarInputStream jarInputStream, OutputStream outputStream) throws 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:
IOException
- If an I/O error occurs.
-
getPackingFileListFromJar
public static List<org.apache.commons.compress.harmony.pack200.Archive.PackingFile> getPackingFileListFromJar(JarFile jarFile, boolean keepFileOrder) throws IOException - Throws:
IOException
-
getPackingFileListFromJar
public static List<org.apache.commons.compress.harmony.pack200.Archive.PackingFile> getPackingFileListFromJar(JarInputStream jarInputStream, boolean keepFileOrder) throws IOException - Throws:
IOException
-
log
-