Package | Description |
---|---|
org.apache.commons.compress.archivers.jar |
Provides stream classes for reading and writing archives using
the ZIP format with some extensions for the special case of JAR
archives.
|
org.apache.commons.compress.archivers.zip |
Provides stream classes for reading and writing archives using
the ZIP format.
|
Modifier and Type | Class and Description |
---|---|
class |
JarArchiveEntry |
Constructor and Description |
---|
JarArchiveEntry(ZipArchiveEntry entry) |
Modifier and Type | Field and Description |
---|---|
private ZipArchiveEntry |
ZipArchiveInputStream.current |
private ZipArchiveEntry |
ZipArchiveOutputStream.entry
Current entry.
|
private ZipArchiveEntry |
UnsupportedZipFeatureException.entry |
Modifier and Type | Method and Description |
---|---|
ZipArchiveEntry |
UnsupportedZipFeatureException.getEntry()
The entry using the unsupported feature.
|
ZipArchiveEntry |
ZipFile.getEntry(java.lang.String name)
Returns a named entry - or
null if no entry by
that name exists. |
ZipArchiveEntry |
ZipArchiveInputStream.getNextZipEntry() |
Modifier and Type | Method and Description |
---|---|
(package private) static boolean |
ZipUtil.canHandleEntryData(ZipArchiveEntry entry)
Whether this library is able to read or write the given entry.
|
boolean |
ZipFile.canReadEntryData(ZipArchiveEntry ze)
Whether this class is able to read the given entry.
|
(package private) static void |
ZipUtil.checkRequestedFeatures(ZipArchiveEntry ze)
Checks whether the entry requires features not (yet) supported
by the library and throws an exception if it does.
|
java.io.InputStream |
ZipFile.getInputStream(ZipArchiveEntry ze)
Returns an InputStream for reading the contents of the given entry.
|
(package private) static void |
ZipUtil.setNameAndCommentFromExtraFields(ZipArchiveEntry ze,
byte[] originalNameBytes,
byte[] commentBytes)
If the entry has Unicode*ExtraFields and the CRCs of the
names/comments match those of the extra fields, transfer the
known Unicode values from the extra field.
|
private boolean |
ZipArchiveInputStream.supportsDataDescriptorFor(ZipArchiveEntry entry)
Whether this entry requires a data descriptor this library can work with.
|
private static boolean |
ZipUtil.supportsEncryptionOf(ZipArchiveEntry entry)
Whether this library supports the encryption used by the given
entry.
|
private static boolean |
ZipUtil.supportsMethodOf(ZipArchiveEntry entry)
Whether this library supports the compression method used by
the given entry.
|
protected void |
ZipArchiveOutputStream.writeCentralFileHeader(ZipArchiveEntry ze)
Writes the central file header entry.
|
protected void |
ZipArchiveOutputStream.writeDataDescriptor(ZipArchiveEntry ze)
Writes the data descriptor entry.
|
protected void |
ZipArchiveOutputStream.writeLocalFileHeader(ZipArchiveEntry ze)
Writes the local file header entry
|
Constructor and Description |
---|
UnsupportedZipFeatureException(UnsupportedZipFeatureException.Feature reason,
ZipArchiveEntry entry)
Creates an exception.
|
ZipArchiveEntry(ZipArchiveEntry entry)
Creates a new zip entry with fields taken from the specified zip entry.
|