Enum FileExtension
- All Implemented Interfaces:
Serializable
,Comparable<FileExtension>
,java.lang.constant.Constable
Enumerates over supported file extensions for compression.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum Constants -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) abstract Action
createCompressAction
(String renameTo, String compressedName, boolean deleteSource, int compressionLevel) (package private) String
(package private) boolean
(package private) int
length()
static FileExtension
static FileExtension
lookupForFile
(String fileName) (package private) File
(package private) File
static FileExtension
Returns the enum constant of this type with the specified name.static FileExtension[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
ZIP
-
GZ
-
BZIP2
-
DEFLATE
-
PACK200
-
XZ
-
-
Field Details
-
extension
-
-
Constructor Details
-
FileExtension
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
lookup
-
lookupForFile
-
createCompressAction
-
getExtension
String getExtension() -
isExtensionFor
-
length
int length() -
source
-
target
-