| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static void | |
| public static void | |
| public static void | |
| public static void |
| Pack200Utils | back to summary |
|---|---|
| private Pack200Utils() | |
| normalize | back to summary |
|---|---|
| public static void normalize(final File jar) throws IOException Normalizes a JAR archive in-place, so it can be safely signed and packed. As stated in Pack200.Packer's javadocs applying a Pack200 compression to a JAR archive will in general make its signatures 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.
| |
| normalize | back to summary |
|---|---|
| public static void normalize(final File from, final File to) throws IOException Normalizes a JAR archive, so it can be safely signed and packed. As stated in Pack200.Packer's javadocs applying a Pack200 compression to a JAR archive will in general make its signatures 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.
| |
| normalize | back to summary |
|---|---|
| public static void normalize(final File from, final File to, Map<String, String> props) throws IOException Normalizes a JAR archive, so it can be safely signed and packed. As stated in Pack200.Packer's javadocs applying a Pack200 compression to a JAR archive will in general make its signatures 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. | |
| normalize | back to summary |
|---|---|
| public static void normalize(final File jar, final Map<String, String> props) throws IOException Normalizes a JAR archive in-place, so it can be safely signed and packed. As stated in Pack200.Packer's javadocs applying a Pack200 compression to a JAR archive will in general make its signatures invalid. In order to prepare a JAR for signing it should be "normalized" by packing and unpacking it. This is what this method does.
| |