|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.commons.compress.compressors.pack200.Pack200Utils
public class Pack200Utils
Utility methods for Pack200.
| Method Summary | |
|---|---|
static void |
normalize(java.io.File jar)
Normalizes a JAR archive in-place so it can be safely signed and packed. |
static void |
normalize(java.io.File from,
java.io.File to)
Normalizes a JAR archive so it can be safely signed and packed. |
static void |
normalize(java.io.File from,
java.io.File to,
java.util.Map<java.lang.String,java.lang.String> props)
Normalizes a JAR archive so it can be safely signed and packed. |
static void |
normalize(java.io.File jar,
java.util.Map<java.lang.String,java.lang.String> props)
Normalizes a JAR archive in-place so it can be safely signed and packed. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static void normalize(java.io.File jar)
throws java.io.IOException
As stated in Pack200.Packer's javadocs applying a Pack200 compression to a JAR archive will in general make its sigantures invalid. In order to prepare a JAR for signing it should be "normalized" by packing and unpacking it. This is what this method does.
Note this methods implicitly sets the segment length to -1.
jar - the JAR archive to normalize
java.io.IOException
public static void normalize(java.io.File jar,
java.util.Map<java.lang.String,java.lang.String> props)
throws java.io.IOException
As stated in Pack200.Packer's javadocs applying a Pack200 compression to a JAR archive will in general make its sigantures invalid. In order to prepare a JAR for signing it should be "normalized" by packing and unpacking it. This is what this method does.
jar - the JAR archive to normalizeprops - properties to set for the pack operation. This
method will implicitly set the segment limit to -1.
java.io.IOException
public static void normalize(java.io.File from,
java.io.File to)
throws java.io.IOException
As stated in Pack200.Packer's javadocs applying a Pack200 compression to a JAR archive will in general make its sigantures invalid. In order to prepare a JAR for signing it should be "normalized" by packing and unpacking it. This is what this method does.
This method does not replace the existing archive but creates a new one.
Note this methods implicitly sets the segment length to -1.
from - the JAR archive to normalizeto - the normalized archive
java.io.IOException
public static void normalize(java.io.File from,
java.io.File to,
java.util.Map<java.lang.String,java.lang.String> props)
throws java.io.IOException
As stated in Pack200.Packer's javadocs applying a Pack200 compression to a JAR archive will in general make its sigantures invalid. In order to prepare a JAR for signing it should be "normalized" by packing and unpacking it. This is what this method does.
This method does not replace the existing archive but creates a new one.
from - the JAR archive to normalizeto - the normalized archiveprops - properties to set for the pack operation. This
method will implicitly set the segment limit to -1.
java.io.IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||