public interface ArchiveEntry
ArchiveEntry is dependent on the status of the ArchiveStream it came from. Once
retrieved via ArchiveStream.getNextEntry(), the entry can be used as long as the ArchiveStream
remains on this entry, i.e. getNextEntry() was not called, and the stream was not since closed.| Modifier and Type | Field and Description |
|---|---|
static long |
UNKNOWN_SIZE
Special value indicating that the size is unknown
|
| Modifier and Type | Method and Description |
|---|---|
File |
extract(File destination)
Extracts the entry to the given destination directory.
|
Date |
getLastModifiedDate()
Returns the last modified date of the entry.
|
String |
getName()
The name of the entry in the archive.
|
long |
getSize()
The (uncompressed) size of the entry.
|
boolean |
isDirectory()
Checks whether the given entry is a directory.
|
static final long UNKNOWN_SIZE
String getName()
long getSize()
Date getLastModifiedDate()
boolean isDirectory()
File extract(File destination) throws IOException, IllegalStateException, IllegalArgumentException
destination - the directory to extract the value toIOException - propagated I/O errors by java.ioIllegalStateException - if the entry is out of sync with the streamIllegalArgumentException - if the destination is not a directory, or a directory can not be created at the
given locationCopyright © 2013-2015. All Rights Reserved.