36 import java.time.ZoneOffset;
37 import java.util.HashSet;
38 import java.util.Set;
39 import java.util.SortedMap;
40 import java.util.jar.JarEntry;
41 import java.util.jar.JarInputStream;
42 import java.util.jar.JarOutputStream;
43 import java.util.jar.Pack200;
44 import java.util.zip.CRC32;
45 import java.util.zip.CheckedOutputStream;
46 import java.util.zip.ZipEntry;
47
48 /*
49 * Implementation of the Pack provider.
50 * </pre></blockquote>
51 * @author John Rose
52 * @author Kumar Srinivasan
53 */
54
55
56 public class UnpackerImpl extends TLGlobals implements Pack200.Unpacker {
57
58 public UnpackerImpl() {}
59
60
61
62 /**
63 * Get the set of options for the pack and unpack engines.
64 * @return A sorted association of option key strings to option values.
65 */
66 public SortedMap<String, String> properties() {
67 return props;
68 }
69
70 // Back-pointer to NativeUnpacker, when active.
71 Object _nunp;
72
73
74 public String toString() {
75 return Utils.getVersionString();
|
36 import java.time.ZoneOffset;
37 import java.util.HashSet;
38 import java.util.Set;
39 import java.util.SortedMap;
40 import java.util.jar.JarEntry;
41 import java.util.jar.JarInputStream;
42 import java.util.jar.JarOutputStream;
43 import java.util.jar.Pack200;
44 import java.util.zip.CRC32;
45 import java.util.zip.CheckedOutputStream;
46 import java.util.zip.ZipEntry;
47
48 /*
49 * Implementation of the Pack provider.
50 * </pre></blockquote>
51 * @author John Rose
52 * @author Kumar Srinivasan
53 */
54
55
56 @SuppressWarnings({"removal"})
57 public class UnpackerImpl extends TLGlobals implements Pack200.Unpacker {
58
59 public UnpackerImpl() {}
60
61
62
63 /**
64 * Get the set of options for the pack and unpack engines.
65 * @return A sorted association of option key strings to option values.
66 */
67 public SortedMap<String, String> properties() {
68 return props;
69 }
70
71 // Back-pointer to NativeUnpacker, when active.
72 Object _nunp;
73
74
75 public String toString() {
76 return Utils.getVersionString();
|