-
- All Implemented Interfaces:
-
java.io.Serializable
public class UnsupportedZipFeatureException extends ZipException
Exception thrown when attempting to read or write data for a zip entry that uses ZIP features not supported by this library.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public classUnsupportedZipFeatureException.FeatureZIP Features that may or may not be supported.
-
Field Summary
Fields Modifier and Type Field Description private final transient ZipArchiveEntryentry
-
Constructor Summary
Constructors Constructor Description UnsupportedZipFeatureException(UnsupportedZipFeatureException.Feature reason)Creates an exception when the whole archive uses an unsupportedfeature. UnsupportedZipFeatureException(UnsupportedZipFeatureException.Feature reason, ZipArchiveEntry entry)Creates an exception. UnsupportedZipFeatureException(ZipMethod method, ZipArchiveEntry entry)Creates an exception for archives that use an unsupportedcompression algorithm.
-
Method Summary
Modifier and Type Method Description ZipArchiveEntrygetEntry()The entry using the unsupported feature. UnsupportedZipFeatureException.FeaturegetFeature()The unsupported feature that has been used. -
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, setStackTrace, toString -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Constructor Detail
-
UnsupportedZipFeatureException
UnsupportedZipFeatureException(UnsupportedZipFeatureException.Feature reason)
Creates an exception when the whole archive uses an unsupportedfeature.- Parameters:
reason- the feature that is not supported
-
UnsupportedZipFeatureException
UnsupportedZipFeatureException(UnsupportedZipFeatureException.Feature reason, ZipArchiveEntry entry)
Creates an exception.- Parameters:
reason- the feature that is not supportedentry- the entry using the feature
-
UnsupportedZipFeatureException
UnsupportedZipFeatureException(ZipMethod method, ZipArchiveEntry entry)
Creates an exception for archives that use an unsupportedcompression algorithm.- Parameters:
method- the method that is not supportedentry- the entry using the feature
-
-
Method Detail
-
getEntry
ZipArchiveEntry getEntry()
The entry using the unsupported feature.
-
getFeature
UnsupportedZipFeatureException.Feature getFeature()
The unsupported feature that has been used.
-
-
-
-