Java Code Examples for java.util.jar.Pack200#newUnpacker()
The following examples show how to use
java.util.jar.Pack200#newUnpacker() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: Utils.java From jdk8u_jdk with GNU General Public License v2.0 | 5 votes |
private static void unpack0(File inFile, JarOutputStream jarStream, boolean useJavaUnpack) throws IOException { // Unpack the files Pack200.Unpacker unpacker = Pack200.newUnpacker(); Map<String, String> props = unpacker.properties(); if (useJavaUnpack) { props.put("com.sun.java.util.jar.pack.disable.native", "true"); } // Call the unpacker unpacker.unpack(inFile, jarStream); }
Example 2
Source File: PackageVersionTest.java From openjdk-8-source with GNU General Public License v2.0 | 5 votes |
static void verify6991164() { Unpacker unpacker = Pack200.newUnpacker(); String versionStr = unpacker.toString(); String expected = "Pack200, Vendor: " + System.getProperty("java.vendor") + ", Version: " + JAVA7_PACKAGE_MAJOR_VERSION + "." + JAVA7_PACKAGE_MINOR_VERSION; if (!versionStr.equals(expected)) { System.out.println("Expected: " + expected); System.out.println("Obtained: " + versionStr); throw new RuntimeException("did not get expected string " + expected); } }
Example 3
Source File: Utils.java From hottub with GNU General Public License v2.0 | 5 votes |
private static void unpack0(File inFile, JarOutputStream jarStream, boolean useJavaUnpack) throws IOException { // Unpack the files Pack200.Unpacker unpacker = Pack200.newUnpacker(); Map<String, String> props = unpacker.properties(); if (useJavaUnpack) { props.put("com.sun.java.util.jar.pack.disable.native", "true"); } // Call the unpacker unpacker.unpack(inFile, jarStream); }
Example 4
Source File: PackageVersionTest.java From hottub with GNU General Public License v2.0 | 5 votes |
static void verify6991164() { Unpacker unpacker = Pack200.newUnpacker(); String versionStr = unpacker.toString(); String expected = "Pack200, Vendor: " + System.getProperty("java.vendor") + ", Version: " + JAVA7_PACKAGE_MAJOR_VERSION + "." + JAVA7_PACKAGE_MINOR_VERSION; if (!versionStr.equals(expected)) { System.out.println("Expected: " + expected); System.out.println("Obtained: " + versionStr); throw new RuntimeException("did not get expected string " + expected); } }
Example 5
Source File: PackageVersionTest.java From jdk8u-dev-jdk with GNU General Public License v2.0 | 5 votes |
static void verify6991164() { Unpacker unpacker = Pack200.newUnpacker(); String versionStr = unpacker.toString(); String expected = "Pack200, Vendor: " + System.getProperty("java.vendor") + ", Version: " + JAVA7_PACKAGE_MAJOR_VERSION + "." + JAVA7_PACKAGE_MINOR_VERSION; if (!versionStr.equals(expected)) { System.out.println("Expected: " + expected); System.out.println("Obtained: " + versionStr); throw new RuntimeException("did not get expected string " + expected); } }
Example 6
Source File: PackageVersionTest.java From jdk8u_jdk with GNU General Public License v2.0 | 5 votes |
static void verify6991164() { Unpacker unpacker = Pack200.newUnpacker(); String versionStr = unpacker.toString(); String expected = "Pack200, Vendor: " + System.getProperty("java.vendor") + ", Version: " + JAVA7_PACKAGE_MAJOR_VERSION + "." + JAVA7_PACKAGE_MINOR_VERSION; if (!versionStr.equals(expected)) { System.out.println("Expected: " + expected); System.out.println("Obtained: " + versionStr); throw new RuntimeException("did not get expected string " + expected); } }
Example 7
Source File: Utils.java From openjdk-jdk9 with GNU General Public License v2.0 | 5 votes |
private static void unpack0(File inFile, JarOutputStream jarStream, boolean useJavaUnpack) throws IOException { // Unpack the files Pack200.Unpacker unpacker = Pack200.newUnpacker(); Map<String, String> props = unpacker.properties(); if (useJavaUnpack) { props.put("com.sun.java.util.jar.pack.disable.native", "true"); } // Call the unpacker unpacker.unpack(inFile, jarStream); }
Example 8
Source File: Utils.java From openjdk-8 with GNU General Public License v2.0 | 5 votes |
private static void unpack0(File inFile, JarOutputStream jarStream, boolean useJavaUnpack) throws IOException { // Unpack the files Pack200.Unpacker unpacker = Pack200.newUnpacker(); Map<String, String> props = unpacker.properties(); if (useJavaUnpack) { props.put("com.sun.java.util.jar.pack.disable.native", "true"); } // Call the unpacker unpacker.unpack(inFile, jarStream); }
Example 9
Source File: PackageVersionTest.java From dragonwell8_jdk with GNU General Public License v2.0 | 5 votes |
static void verify6991164() { Unpacker unpacker = Pack200.newUnpacker(); String versionStr = unpacker.toString(); String expected = "Pack200, Vendor: " + System.getProperty("java.vendor") + ", Version: " + JAVA7_PACKAGE_MAJOR_VERSION + "." + JAVA7_PACKAGE_MINOR_VERSION; if (!versionStr.equals(expected)) { System.out.println("Expected: " + expected); System.out.println("Obtained: " + versionStr); throw new RuntimeException("did not get expected string " + expected); } }
Example 10
Source File: PackageVersionTest.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 5 votes |
static void verify6991164() { Unpacker unpacker = Pack200.newUnpacker(); String versionStr = unpacker.toString(); String expected = "Pack200, Vendor: " + System.getProperty("java.vendor") + ", Version: " + JAVA7_PACKAGE_MAJOR_VERSION + "." + JAVA7_PACKAGE_MINOR_VERSION; if (!versionStr.equals(expected)) { System.out.println("Expected: " + expected); System.out.println("Obtained: " + versionStr); throw new RuntimeException("did not get expected string " + expected); } }
Example 11
Source File: Utils.java From openjdk-jdk8u with GNU General Public License v2.0 | 5 votes |
private static void unpack0(File inFile, JarOutputStream jarStream, boolean useJavaUnpack) throws IOException { // Unpack the files Pack200.Unpacker unpacker = Pack200.newUnpacker(); Map<String, String> props = unpacker.properties(); if (useJavaUnpack) { props.put("com.sun.java.util.jar.pack.disable.native", "true"); } // Call the unpacker unpacker.unpack(inFile, jarStream); }
Example 12
Source File: PackageVersionTest.java From openjdk-jdk8u with GNU General Public License v2.0 | 5 votes |
static void verify6991164() { Unpacker unpacker = Pack200.newUnpacker(); String versionStr = unpacker.toString(); String expected = "Pack200, Vendor: " + System.getProperty("java.vendor") + ", Version: " + JAVA7_PACKAGE_MAJOR_VERSION + "." + JAVA7_PACKAGE_MINOR_VERSION; if (!versionStr.equals(expected)) { System.out.println("Expected: " + expected); System.out.println("Obtained: " + versionStr); throw new RuntimeException("did not get expected string " + expected); } }
Example 13
Source File: Utils.java From jdk8u-dev-jdk with GNU General Public License v2.0 | 5 votes |
private static void unpack0(File inFile, JarOutputStream jarStream, boolean useJavaUnpack) throws IOException { // Unpack the files Pack200.Unpacker unpacker = Pack200.newUnpacker(); Map<String, String> props = unpacker.properties(); if (useJavaUnpack) { props.put("com.sun.java.util.jar.pack.disable.native", "true"); } // Call the unpacker unpacker.unpack(inFile, jarStream); }
Example 14
Source File: Utils.java From jdk8u60 with GNU General Public License v2.0 | 5 votes |
private static void unpack0(File inFile, JarOutputStream jarStream, boolean useJavaUnpack) throws IOException { // Unpack the files Pack200.Unpacker unpacker = Pack200.newUnpacker(); Map<String, String> props = unpacker.properties(); if (useJavaUnpack) { props.put("com.sun.java.util.jar.pack.disable.native", "true"); } // Call the unpacker unpacker.unpack(inFile, jarStream); }
Example 15
Source File: PackageVersionTest.java From jdk8u60 with GNU General Public License v2.0 | 5 votes |
static void verify6991164() { Unpacker unpacker = Pack200.newUnpacker(); String versionStr = unpacker.toString(); String expected = "Pack200, Vendor: " + System.getProperty("java.vendor") + ", Version: " + JAVA7_PACKAGE_MAJOR_VERSION + "." + JAVA7_PACKAGE_MINOR_VERSION; if (!versionStr.equals(expected)) { System.out.println("Expected: " + expected); System.out.println("Obtained: " + versionStr); throw new RuntimeException("did not get expected string " + expected); } }
Example 16
Source File: Utils.java From TencentKona-8 with GNU General Public License v2.0 | 5 votes |
private static void unpack0(File inFile, JarOutputStream jarStream, boolean useJavaUnpack) throws IOException { // Unpack the files Pack200.Unpacker unpacker = Pack200.newUnpacker(); Map<String, String> props = unpacker.properties(); if (useJavaUnpack) { props.put("com.sun.java.util.jar.pack.disable.native", "true"); } // Call the unpacker unpacker.unpack(inFile, jarStream); }
Example 17
Source File: PackageVersionTest.java From TencentKona-8 with GNU General Public License v2.0 | 5 votes |
static void verify6991164() { Unpacker unpacker = Pack200.newUnpacker(); String versionStr = unpacker.toString(); String expected = "Pack200, Vendor: " + System.getProperty("java.vendor") + ", Version: " + JAVA7_PACKAGE_MAJOR_VERSION + "." + JAVA7_PACKAGE_MINOR_VERSION; if (!versionStr.equals(expected)) { System.out.println("Expected: " + expected); System.out.println("Obtained: " + versionStr); throw new RuntimeException("did not get expected string " + expected); } }
Example 18
Source File: Utils.java From dragonwell8_jdk with GNU General Public License v2.0 | 5 votes |
private static void unpack0(File inFile, JarOutputStream jarStream, boolean useJavaUnpack) throws IOException { // Unpack the files Pack200.Unpacker unpacker = Pack200.newUnpacker(); Map<String, String> props = unpacker.properties(); if (useJavaUnpack) { props.put("com.sun.java.util.jar.pack.disable.native", "true"); } // Call the unpacker unpacker.unpack(inFile, jarStream); }
Example 19
Source File: Unpack.java From ramus with GNU General Public License v3.0 | 4 votes |
public static void main(String[] args) throws IOException { if (args.length != 2) { System.err.println("command unput-directory output-directory"); System.exit(1); } File inputDirectory = new File(args[0]); File outputDirectory = new File(args[1]); outputDirectory.mkdirs(); Unpacker unpacker = Pack200.newUnpacker(); unpack(inputDirectory, outputDirectory, unpacker); }
Example 20
Source File: SecurityTest.java From openjdk-jdk9 with GNU General Public License v2.0 | 4 votes |
public static void main(String... args) { System.setSecurityManager(new SecurityManager()); Pack200.newPacker(); Pack200.newUnpacker(); }