< prev index next >

src/java.base/share/classes/java/util/zip/ZipEntry.java

Print this page
8203328: Rename EFS in java.util.zip internals to something meaningful
Reviewed-by: sherman


 337      * @return This zip entry
 338      *
 339      * @throws NullPointerException if the {@code time} is null
 340      *
 341      * @see #getLastAccessTime()
 342      * @since 1.8
 343      */
 344     public ZipEntry setLastAccessTime(FileTime time) {
 345         this.atime = Objects.requireNonNull(time, "lastAccessTime");
 346         return this;
 347     }
 348 
 349     /**
 350      * Returns the last access time of the entry.
 351      *
 352      * <p> The last access time is from the extended timestamp fields
 353      * of entry's {@code optional extra data} when read from a ZIP file
 354      * or ZIP file formatted stream.
 355      *
 356      * @return The last access time of the entry, null if not specified
 357 
 358      * @see #setLastAccessTime(FileTime)
 359      * @since 1.8
 360      */
 361     public FileTime getLastAccessTime() {
 362         return atime;
 363     }
 364 
 365     /**
 366      * Sets the creation time of the entry.
 367      *
 368      * <p> If set, the creation time will be stored into the extended
 369      * timestamp fields of entry's {@code optional extra data}, when
 370      * output to a ZIP file or ZIP file formatted stream.
 371      *
 372      * @param  time
 373      *         The creation time of the entry
 374      * @return This zip entry
 375      *
 376      * @throws NullPointerException if the {@code time} is null
 377      *




 337      * @return This zip entry
 338      *
 339      * @throws NullPointerException if the {@code time} is null
 340      *
 341      * @see #getLastAccessTime()
 342      * @since 1.8
 343      */
 344     public ZipEntry setLastAccessTime(FileTime time) {
 345         this.atime = Objects.requireNonNull(time, "lastAccessTime");
 346         return this;
 347     }
 348 
 349     /**
 350      * Returns the last access time of the entry.
 351      *
 352      * <p> The last access time is from the extended timestamp fields
 353      * of entry's {@code optional extra data} when read from a ZIP file
 354      * or ZIP file formatted stream.
 355      *
 356      * @return The last access time of the entry, null if not specified

 357      * @see #setLastAccessTime(FileTime)
 358      * @since 1.8
 359      */
 360     public FileTime getLastAccessTime() {
 361         return atime;
 362     }
 363 
 364     /**
 365      * Sets the creation time of the entry.
 366      *
 367      * <p> If set, the creation time will be stored into the extended
 368      * timestamp fields of entry's {@code optional extra data}, when
 369      * output to a ZIP file or ZIP file formatted stream.
 370      *
 371      * @param  time
 372      *         The creation time of the entry
 373      * @return This zip entry
 374      *
 375      * @throws NullPointerException if the {@code time} is null
 376      *


< prev index next >