Class UnsupportedZipFeatureException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.io.IOException
-
- java.util.zip.ZipException
-
- org.apache.commons.compress.archivers.zip.UnsupportedZipFeatureException
-
- All Implemented Interfaces:
java.io.Serializable
public class UnsupportedZipFeatureException extends java.util.zip.ZipException
Exception thrown when attempting to read or write data for a zip entry that uses ZIP features not supported by this library.- Since:
- 1.1
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
UnsupportedZipFeatureException.Feature
ZIP Features that may or may not be supported.
-
Constructor Summary
Constructors Constructor Description UnsupportedZipFeatureException(UnsupportedZipFeatureException.Feature reason)
Creates an exception when the whole archive uses an unsupported feature.UnsupportedZipFeatureException(UnsupportedZipFeatureException.Feature reason, ZipArchiveEntry entry)
Creates an exception.UnsupportedZipFeatureException(ZipMethod method, ZipArchiveEntry entry)
Creates an exception for archives that use an unsupported compression algorithm.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ZipArchiveEntry
getEntry()
The entry using the unsupported feature.UnsupportedZipFeatureException.Feature
getFeature()
The unsupported feature that has been used.
-
-
-
Constructor Detail
-
UnsupportedZipFeatureException
public UnsupportedZipFeatureException(UnsupportedZipFeatureException.Feature reason, ZipArchiveEntry entry)
Creates an exception.- Parameters:
reason
- the feature that is not supportedentry
- the entry using the feature
-
UnsupportedZipFeatureException
public UnsupportedZipFeatureException(ZipMethod method, ZipArchiveEntry entry)
Creates an exception for archives that use an unsupported compression algorithm.- Parameters:
method
- the method that is not supportedentry
- the entry using the feature- Since:
- 1.5
-
UnsupportedZipFeatureException
public UnsupportedZipFeatureException(UnsupportedZipFeatureException.Feature reason)
Creates an exception when the whole archive uses an unsupported feature.- Parameters:
reason
- the feature that is not supported- Since:
- 1.5
-
-
Method Detail
-
getFeature
public UnsupportedZipFeatureException.Feature getFeature()
The unsupported feature that has been used.- Returns:
- The unsupported feature that has been used.
-
getEntry
public ZipArchiveEntry getEntry()
The entry using the unsupported feature.- Returns:
- The entry using the unsupported feature.
-
-