Java Code Examples for java.util.jar.JarEntry#DEFLATED
The following examples show how to use
java.util.jar.JarEntry#DEFLATED .
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: PackerImpl.java From openjdk-jdk9 with GNU General Public License v2.0 | 6 votes |
InFile(JarFile jf, JarEntry je) { this.name = Utils.getJarEntryName(je.getName()); this.f = null; this.jf = jf; this.je = je; int timeSecs = (int) je.getTimeLocal() .atOffset(ZoneOffset.UTC) .toEpochSecond(); if (keepModtime && timeSecs != Constants.NO_MODTIME) { this.modtime = timeSecs; } else if (latestModtime && timeSecs > pkg.default_modtime) { pkg.default_modtime = timeSecs; } if (keepDeflateHint && je.getMethod() == JarEntry.DEFLATED) { options |= Constants.FO_DEFLATE_HINT; } }
Example 2
Source File: PackerImpl.java From dragonwell8_jdk with GNU General Public License v2.0 | 5 votes |
InFile(JarFile jf, JarEntry je) { this.name = Utils.getJarEntryName(je.getName()); this.f = null; this.jf = jf; this.je = je; int timeSecs = getModtime(je.getTime()); if (keepModtime && timeSecs != Constants.NO_MODTIME) { this.modtime = timeSecs; } else if (latestModtime && timeSecs > pkg.default_modtime) { pkg.default_modtime = timeSecs; } if (keepDeflateHint && je.getMethod() == JarEntry.DEFLATED) { options |= Constants.FO_DEFLATE_HINT; } }
Example 3
Source File: PackerImpl.java From TencentKona-8 with GNU General Public License v2.0 | 5 votes |
InFile(JarFile jf, JarEntry je) { this.name = Utils.getJarEntryName(je.getName()); this.f = null; this.jf = jf; this.je = je; int timeSecs = getModtime(je.getTime()); if (keepModtime && timeSecs != Constants.NO_MODTIME) { this.modtime = timeSecs; } else if (latestModtime && timeSecs > pkg.default_modtime) { pkg.default_modtime = timeSecs; } if (keepDeflateHint && je.getMethod() == JarEntry.DEFLATED) { options |= Constants.FO_DEFLATE_HINT; } }
Example 4
Source File: PackerImpl.java From jdk8u60 with GNU General Public License v2.0 | 5 votes |
InFile(JarFile jf, JarEntry je) { this.name = Utils.getJarEntryName(je.getName()); this.f = null; this.jf = jf; this.je = je; int timeSecs = getModtime(je.getTime()); if (keepModtime && timeSecs != Constants.NO_MODTIME) { this.modtime = timeSecs; } else if (latestModtime && timeSecs > pkg.default_modtime) { pkg.default_modtime = timeSecs; } if (keepDeflateHint && je.getMethod() == JarEntry.DEFLATED) { options |= Constants.FO_DEFLATE_HINT; } }
Example 5
Source File: PackerImpl.java From openjdk-jdk8u with GNU General Public License v2.0 | 5 votes |
InFile(JarFile jf, JarEntry je) { this.name = Utils.getJarEntryName(je.getName()); this.f = null; this.jf = jf; this.je = je; int timeSecs = getModtime(je.getTime()); if (keepModtime && timeSecs != Constants.NO_MODTIME) { this.modtime = timeSecs; } else if (latestModtime && timeSecs > pkg.default_modtime) { pkg.default_modtime = timeSecs; } if (keepDeflateHint && je.getMethod() == JarEntry.DEFLATED) { options |= Constants.FO_DEFLATE_HINT; } }
Example 6
Source File: PackerImpl.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 5 votes |
InFile(JarFile jf, JarEntry je) { this.name = Utils.getJarEntryName(je.getName()); this.f = null; this.jf = jf; this.je = je; int timeSecs = getModtime(je.getTime()); if (keepModtime && timeSecs != Constants.NO_MODTIME) { this.modtime = timeSecs; } else if (latestModtime && timeSecs > pkg.default_modtime) { pkg.default_modtime = timeSecs; } if (keepDeflateHint && je.getMethod() == JarEntry.DEFLATED) { options |= Constants.FO_DEFLATE_HINT; } }
Example 7
Source File: PackerImpl.java From jdk8u-jdk with GNU General Public License v2.0 | 5 votes |
InFile(JarFile jf, JarEntry je) { this.name = Utils.getJarEntryName(je.getName()); this.f = null; this.jf = jf; this.je = je; int timeSecs = getModtime(je.getTime()); if (keepModtime && timeSecs != Constants.NO_MODTIME) { this.modtime = timeSecs; } else if (latestModtime && timeSecs > pkg.default_modtime) { pkg.default_modtime = timeSecs; } if (keepDeflateHint && je.getMethod() == JarEntry.DEFLATED) { options |= Constants.FO_DEFLATE_HINT; } }
Example 8
Source File: PackerImpl.java From hottub with GNU General Public License v2.0 | 5 votes |
InFile(JarFile jf, JarEntry je) { this.name = Utils.getJarEntryName(je.getName()); this.f = null; this.jf = jf; this.je = je; int timeSecs = getModtime(je.getTime()); if (keepModtime && timeSecs != Constants.NO_MODTIME) { this.modtime = timeSecs; } else if (latestModtime && timeSecs > pkg.default_modtime) { pkg.default_modtime = timeSecs; } if (keepDeflateHint && je.getMethod() == JarEntry.DEFLATED) { options |= Constants.FO_DEFLATE_HINT; } }
Example 9
Source File: PackerImpl.java From openjdk-8-source with GNU General Public License v2.0 | 5 votes |
InFile(JarFile jf, JarEntry je) { this.name = Utils.getJarEntryName(je.getName()); this.f = null; this.jf = jf; this.je = je; int timeSecs = getModtime(je.getTime()); if (keepModtime && timeSecs != Constants.NO_MODTIME) { this.modtime = timeSecs; } else if (latestModtime && timeSecs > pkg.default_modtime) { pkg.default_modtime = timeSecs; } if (keepDeflateHint && je.getMethod() == JarEntry.DEFLATED) { options |= Constants.FO_DEFLATE_HINT; } }
Example 10
Source File: PackerImpl.java From openjdk-8 with GNU General Public License v2.0 | 5 votes |
InFile(JarFile jf, JarEntry je) { this.name = Utils.getJarEntryName(je.getName()); this.f = null; this.jf = jf; this.je = je; int timeSecs = getModtime(je.getTime()); if (keepModtime && timeSecs != Constants.NO_MODTIME) { this.modtime = timeSecs; } else if (latestModtime && timeSecs > pkg.default_modtime) { pkg.default_modtime = timeSecs; } if (keepDeflateHint && je.getMethod() == JarEntry.DEFLATED) { options |= Constants.FO_DEFLATE_HINT; } }
Example 11
Source File: PackerImpl.java From jdk8u_jdk with GNU General Public License v2.0 | 5 votes |
InFile(JarFile jf, JarEntry je) { this.name = Utils.getJarEntryName(je.getName()); this.f = null; this.jf = jf; this.je = je; int timeSecs = getModtime(je.getTime()); if (keepModtime && timeSecs != Constants.NO_MODTIME) { this.modtime = timeSecs; } else if (latestModtime && timeSecs > pkg.default_modtime) { pkg.default_modtime = timeSecs; } if (keepDeflateHint && je.getMethod() == JarEntry.DEFLATED) { options |= Constants.FO_DEFLATE_HINT; } }
Example 12
Source File: PackerImpl.java From jdk8u-jdk with GNU General Public License v2.0 | 5 votes |
InFile(JarFile jf, JarEntry je) { this.name = Utils.getJarEntryName(je.getName()); this.f = null; this.jf = jf; this.je = je; int timeSecs = getModtime(je.getTime()); if (keepModtime && timeSecs != Constants.NO_MODTIME) { this.modtime = timeSecs; } else if (latestModtime && timeSecs > pkg.default_modtime) { pkg.default_modtime = timeSecs; } if (keepDeflateHint && je.getMethod() == JarEntry.DEFLATED) { options |= Constants.FO_DEFLATE_HINT; } }
Example 13
Source File: PackerImpl.java From jdk8u-dev-jdk with GNU General Public License v2.0 | 5 votes |
InFile(JarFile jf, JarEntry je) { this.name = Utils.getJarEntryName(je.getName()); this.f = null; this.jf = jf; this.je = je; int timeSecs = getModtime(je.getTime()); if (keepModtime && timeSecs != Constants.NO_MODTIME) { this.modtime = timeSecs; } else if (latestModtime && timeSecs > pkg.default_modtime) { pkg.default_modtime = timeSecs; } if (keepDeflateHint && je.getMethod() == JarEntry.DEFLATED) { options |= Constants.FO_DEFLATE_HINT; } }
Example 14
Source File: JarHelper.java From bazel with Apache License 2.0 | 2 votes |
/** * Enables or disables compression for the Jar file entries. * * @param compression if true enables compressions for the Jar file entries. */ public void setCompression(boolean compression) { storageMethod = compression ? JarEntry.DEFLATED : JarEntry.STORED; }