equal
deleted
inserted
replaced
107 * @param time the entry modification time in number of milliseconds |
107 * @param time the entry modification time in number of milliseconds |
108 * since the epoch |
108 * since the epoch |
109 * @see #getTime() |
109 * @see #getTime() |
110 */ |
110 */ |
111 public void setTime(long time) { |
111 public void setTime(long time) { |
112 this.time = javaToDosTime(time); |
112 // fix for bug 6625963: we bypass time calculations while Kernel is |
|
113 // downloading bundles, since they aren't necessary and would cause |
|
114 // the Kernel core to depend upon the (very large) time zone data |
|
115 if (sun.misc.VM.isBootedKernelVM() && |
|
116 sun.jkernel.DownloadManager.isCurrentThreadDownloading()) { |
|
117 this.time = sun.jkernel.DownloadManager.KERNEL_STATIC_MODTIME; |
|
118 } else { |
|
119 this.time = javaToDosTime(time); |
|
120 } |
113 } |
121 } |
114 |
122 |
115 /** |
123 /** |
116 * Returns the modification time of the entry, or -1 if not specified. |
124 * Returns the modification time of the entry, or -1 if not specified. |
117 * @return the modification time of the entry, or -1 if not specified |
125 * @return the modification time of the entry, or -1 if not specified |
243 * <p>ZIP entry comments have maximum length of 0xffff. If the length of the |
251 * <p>ZIP entry comments have maximum length of 0xffff. If the length of the |
244 * specified comment string is greater than 0xFFFF bytes after encoding, only |
252 * specified comment string is greater than 0xFFFF bytes after encoding, only |
245 * the first 0xFFFF bytes are output to the ZIP file entry. |
253 * the first 0xFFFF bytes are output to the ZIP file entry. |
246 * |
254 * |
247 * @param comment the comment string |
255 * @param comment the comment string |
248 * |
256 * @exception IllegalArgumentException if the length of the specified |
|
257 * comment string is greater than 0xFFFF bytes |
249 * @see #getComment() |
258 * @see #getComment() |
250 */ |
259 */ |
251 public void setComment(String comment) { |
260 public void setComment(String comment) { |
|
261 if (comment != null && comment.length() > 0xffff) { |
|
262 throw new IllegalArgumentException("invalid entry comment length"); |
|
263 } |
252 this.comment = comment; |
264 this.comment = comment; |
253 } |
265 } |
254 |
266 |
255 /** |
267 /** |
256 * Returns the comment string for the entry, or null if none. |
268 * Returns the comment string for the entry, or null if none. |