equal
deleted
inserted
replaced
31 import java.nio.charset.StandardCharsets; |
31 import java.nio.charset.StandardCharsets; |
32 import java.util.Vector; |
32 import java.util.Vector; |
33 import java.util.HashSet; |
33 import java.util.HashSet; |
34 import static java.util.zip.ZipConstants64.*; |
34 import static java.util.zip.ZipConstants64.*; |
35 import static java.util.zip.ZipUtils.*; |
35 import static java.util.zip.ZipUtils.*; |
|
36 import sun.security.action.GetPropertyAction; |
36 |
37 |
37 /** |
38 /** |
38 * This class implements an output stream filter for writing files in the |
39 * This class implements an output stream filter for writing files in the |
39 * ZIP file format. Includes support for both compressed and uncompressed |
40 * ZIP file format. Includes support for both compressed and uncompressed |
40 * entries. |
41 * entries. |
52 * total entry count fields, such as the ones in jdk6, and even |
53 * total entry count fields, such as the ones in jdk6, and even |
53 * some in jdk7. |
54 * some in jdk7. |
54 */ |
55 */ |
55 private static final boolean inhibitZip64 = |
56 private static final boolean inhibitZip64 = |
56 Boolean.parseBoolean( |
57 Boolean.parseBoolean( |
57 java.security.AccessController.doPrivileged( |
58 GetPropertyAction.getProperty("jdk.util.zip.inhibitZip64")); |
58 new sun.security.action.GetPropertyAction( |
|
59 "jdk.util.zip.inhibitZip64", "false"))); |
|
60 |
59 |
61 private static class XEntry { |
60 private static class XEntry { |
62 final ZipEntry entry; |
61 final ZipEntry entry; |
63 final long offset; |
62 final long offset; |
64 public XEntry(ZipEntry entry, long offset) { |
63 public XEntry(ZipEntry entry, long offset) { |