Top Description Inners Fields Constructors Methods
org.apache.commons.compress.archivers.zip

public Class UnsupportedZipFeatureException

extends ZipException
Class Inheritance
Imports
java.io.Serializable, 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

Nested and Inner Type Summary

Modifier and TypeClass and Description
public static class
UnsupportedZipFeatureException.Feature

ZIP Features that may or may not be supported.

Field Summary

Modifier and TypeField and Description
private final transient ZipArchiveEntry
private final UnsupportedZipFeatureException.Feature
private static final long

Constructor Summary

AccessConstructor and Description
public
UnsupportedZipFeatureException(final UnsupportedZipFeatureException.Feature
the feature that is not supported
reason
)

Creates an exception when the whole archive uses an unsupported feature.

public
UnsupportedZipFeatureException(final UnsupportedZipFeatureException.Feature
the feature that is not supported
reason
,
final ZipArchiveEntry
the entry using the feature
entry
)

Creates an exception.

public
UnsupportedZipFeatureException(final ZipMethod
the method that is not supported
method
,
final ZipArchiveEntry
the entry using the feature
entry
)

Creates an exception for archives that use an unsupported compression algorithm.

Method Summary

Modifier and TypeMethod and Description
public ZipArchiveEntry

Returns:

The entry using the unsupported feature.
getEntry
()

The entry using the unsupported feature.

public UnsupportedZipFeatureException.Feature

Returns:

The unsupported feature that has been used.
getFeature
()

The unsupported feature that has been used.

Field Detail

entryback to summary
private final transient ZipArchiveEntry entry
reasonback to summary
private final UnsupportedZipFeatureException.Feature reason
serialVersionUIDback to summary
private static final long serialVersionUID

Hides java.util.zip.ZipException.serialVersionUID.

Constructor Detail

UnsupportedZipFeatureExceptionback to summary
public UnsupportedZipFeatureException(final UnsupportedZipFeatureException.Feature reason)

Creates an exception when the whole archive uses an unsupported feature.

Parameters
reason:UnsupportedZipFeatureException.Feature

the feature that is not supported

Since
1.5
UnsupportedZipFeatureExceptionback to summary
public UnsupportedZipFeatureException(final UnsupportedZipFeatureException.Feature reason, final ZipArchiveEntry entry)

Creates an exception.

Parameters
reason:UnsupportedZipFeatureException.Feature

the feature that is not supported

entry:ZipArchiveEntry

the entry using the feature

UnsupportedZipFeatureExceptionback to summary
public UnsupportedZipFeatureException(final ZipMethod method, final ZipArchiveEntry entry)

Creates an exception for archives that use an unsupported compression algorithm.

Parameters
method:ZipMethod

the method that is not supported

entry:ZipArchiveEntry

the entry using the feature

Since
1.5

Method Detail

getEntryback to summary
public ZipArchiveEntry getEntry()

The entry using the unsupported feature.

Returns:ZipArchiveEntry

The entry using the unsupported feature.

getFeatureback to summary
public UnsupportedZipFeatureException.Feature getFeature()

The unsupported feature that has been used.

Returns:UnsupportedZipFeatureException.Feature

The unsupported feature that has been used.

org.apache.commons.compress.archivers.zip back to summary

public Class UnsupportedZipFeatureException.Feature

extends Object
implements Serializable
Class Inheritance
  • java.lang.Object
  • org.apache.commons.compress.archivers.zip.UnsupportedZipFeatureException.Feature
All Implemented Interfaces
java.io.Serializable

ZIP Features that may or may not be supported.
Since
1.1

Field Summary

Modifier and TypeField and Description
public static final UnsupportedZipFeatureException.Feature
DATA_DESCRIPTOR

The entry uses a data descriptor.

public static final UnsupportedZipFeatureException.Feature
ENCRYPTION

The entry is encrypted.

public static final UnsupportedZipFeatureException.Feature
METHOD

The entry used an unsupported compression method.

private final String
private static final long
public static final UnsupportedZipFeatureException.Feature
SPLITTING

The archive uses splitting or spanning.

public static final UnsupportedZipFeatureException.Feature
UNKNOWN_COMPRESSED_SIZE

The archive contains entries with unknown compressed size for a compression method that doesn't support detection of the end of the compressed stream.

Constructor Summary

AccessConstructor and Description
private
Feature(final String name)

Method Summary

Modifier and TypeMethod and Description
public String
toString()

Overrides java.lang.Object.toString.

Returns a string representation of the object.
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAllwaitwaitwait

Field Detail

DATA_DESCRIPTORback to summary
public static final UnsupportedZipFeatureException.Feature DATA_DESCRIPTOR

The entry uses a data descriptor.

ENCRYPTIONback to summary
public static final UnsupportedZipFeatureException.Feature ENCRYPTION

The entry is encrypted.

METHODback to summary
public static final UnsupportedZipFeatureException.Feature METHOD

The entry used an unsupported compression method.

nameback to summary
private final String name
serialVersionUIDback to summary
private static final long serialVersionUID
SPLITTINGback to summary
public static final UnsupportedZipFeatureException.Feature SPLITTING

The archive uses splitting or spanning.

Since
1.5
UNKNOWN_COMPRESSED_SIZEback to summary
public static final UnsupportedZipFeatureException.Feature UNKNOWN_COMPRESSED_SIZE

The archive contains entries with unknown compressed size for a compression method that doesn't support detection of the end of the compressed stream.

Since
1.16

Constructor Detail

Featureback to summary
private Feature(final String name)

Method Detail

toStringback to summary
public String toString()

Overrides java.lang.Object.toString.

Doc from java.lang.Object.toString.

Returns a string representation of the object.

Returns:String

a string representation of the object.

Annotations
@Override