public class PackingUtils extends Object
Constructor and Description |
---|
PackingUtils() |
Modifier and Type | Method and Description |
---|---|
static void |
config(PackingOptions options) |
static void |
copyThroughJar(JarFile jarFile,
OutputStream outputStream)
When effort is 0, the packer copys through the original jar file without compression
|
static void |
copyThroughJar(JarInputStream jarInputStream,
OutputStream outputStream)
When effort is 0, the packer copies through the original jar input stream without compression
|
static 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 |
log(String message) |
public PackingUtils()
public static void config(PackingOptions options) throws IOException
IOException
public static void copyThroughJar(JarInputStream jarInputStream, OutputStream outputStream) throws IOException
jarInputStream
- the jar input streamoutputStream
- the jar output streamIOException
- If an I/O error occurs.public static void copyThroughJar(JarFile jarFile, OutputStream outputStream) throws IOException
jarFile
- the input jar fileoutputStream
- the jar output streamIOException
- If an I/O error occurs.public static List<org.apache.commons.compress.harmony.pack200.Archive.PackingFile> getPackingFileListFromJar(JarInputStream jarInputStream, boolean keepFileOrder) throws IOException
IOException
public static List<org.apache.commons.compress.harmony.pack200.Archive.PackingFile> getPackingFileListFromJar(JarFile jarFile, boolean keepFileOrder) throws IOException
IOException
Copyright © 2002–2022 The Apache Software Foundation. All rights reserved.