GeezerVison is showing docs.oracle.com — ZipEntry (Java Platform SE 8 )
Java™ Platform Standard Ed. 8
compact1, compact2, compact3
java.util.zip
Class ZipEntry
-
-
Constructor Summary
Constructors
| Constructor |
Description |
ZipEntry(String name) |
Creates a new zip entry with the specified name.
|
ZipEntry(ZipEntry e) |
Creates a new zip entry with fields taken from the specified
zip entry.
|
-
-
Method Detail
-
getTime
public long getTime()
Returns the last modification time of the entry.
If the entry is read from a ZIP file or ZIP file formatted
input stream, this is the last modification time from the date and time fields of the zip file entry. The
default TimeZone is used
to convert the standard MS-DOS formatted date and time to the
epoch time.
- Returns:
- The last modification time of the entry in milliseconds
since the epoch, or -1 if not specified
- See Also:
setTime(long),
setLastModifiedTime(FileTime)
Java™ Platform Standard Ed. 8
Submit a bug or feature For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples. Copyright © 1993, 2026, Oracle and/or its affiliates. All rights reserved. Use is subject to license terms. Also see the documentation redistribution policy.
|