Lines Matching defs:extra

51     FileTime mtime;     // last modification time, from extra field data
52 FileTime atime; // last access time, from extra field data
53 FileTime ctime; // creation time, from extra field data
59 byte[] extra; // optional extra field data for entry
133 extra = e.extra;
211 * extra data} in UTC time. The {@link java.time.ZoneId#systemDefault()
253 * file entry's {@code optional extra data} if the extended timestamp
287 * in {@code optional extra data} in UTC time.
309 * file entry's {@code optional extra data} if the extended timestamp
332 * timestamp fields of entry's {@code optional extra data}, when output
353 * of entry's {@code optional extra data} when read from a ZIP file
369 * timestamp fields of entry's {@code optional extra data}, when
390 * entry's {@code optional extra data} when read from a ZIP file
508 * Sets the optional extra field data for the entry.
511 * time, last access time and creation time, if the {@code extra} field
517 * @param extra
518 * The extra field data bytes
521 * extra field data is greater than 0xFFFF bytes
525 public void setExtra(byte[] extra) {
526 setExtra0(extra, false);
530 * Sets the optional extra field data for the entry.
532 * @param extra
533 * the extra field data bytes
537 void setExtra0(byte[] extra, boolean doZIP64) {
538 if (extra != null) {
539 if (extra.length > 0xFFFF) {
540 throw new IllegalArgumentException("invalid extra field length");
542 // extra fields are in "HeaderID(2)DataSize(2)Data... format
544 int len = extra.length;
546 int tag = get16(extra, off);
547 int sz = get16(extra, off + 2);
554 // LOC extra zip64 entry MUST include BOTH original
556 // If invalid zip64 extra fields, simply skip. Even
559 // bytes in extra match the id.
561 size = get64(extra, off);
562 csize = get64(extra, off + 8);
570 if (get16(extra, pos) != 0x0001 || get16(extra, pos + 2) != 24)
572 long wtime = get64(extra, pos + 4);
576 wtime = get64(extra, pos + 12);
580 wtime = get64(extra, pos + 20);
586 int flag = Byte.toUnsignedInt(extra[off]);
588 // The CEN-header extra field contains the modification
593 mtime = unixTimeToFileTime(get32S(extra, off + sz0));
597 atime = unixTimeToFileTime(get32S(extra, off + sz0));
601 ctime = unixTimeToFileTime(get32S(extra, off + sz0));
610 this.extra = extra;
614 * Returns the extra field data for the entry.
616 * @return the extra field data for the entry, or null if none
621 return extra;
679 e.extra = (extra == null) ? null : extra.clone();