public interface ArchiveEntry
| Modifier and Type | Field and Description |
|---|---|
static long |
SIZE_UNKNOWN
Special value (-1L) indicating that the size is unknown.
|
| Modifier and Type | Method and Description |
|---|---|
java.util.Date |
getLastModifiedDate()
Gets the last modified date of this entry.
|
java.lang.String |
getName()
Gets the name of the entry in this archive.
|
long |
getSize()
Gets the uncompressed size of this entry.
|
boolean |
isDirectory()
Tests whether this entry refers to a directory (true).
|
default java.nio.file.Path |
resolveIn(java.nio.file.Path parentPath)
Resolves this entry in the given parent Path.
|
static final long SIZE_UNKNOWN
java.util.Date getLastModifiedDate()
java.lang.String getName()
This method returns the raw name as it is stored inside of the archive.
long getSize()
boolean isDirectory()
default java.nio.file.Path resolveIn(java.nio.file.Path parentPath)
throws java.io.IOException
parentPath - the Path.resolve(Path) receiver.java.io.IOException - if this method detects a Zip slip.Copyright © 2010 - 2024 Adobe. All Rights Reserved