- All Implemented Interfaces:
Serializable
,Comparable<FilenameExtension>
,java.lang.constant.Constable
,org.refcodes.mixin.FilenameExtensionAccessor
,org.refcodes.mixin.FilenameSuffixAccessor
public enum FilenameExtension
extends Enum<FilenameExtension>
implements org.refcodes.mixin.FilenameExtensionAccessor, org.refcodes.mixin.FilenameSuffixAccessor
The
FilenameExtension
define values useful when working with files or
a file-system.-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
Nested classes/interfaces inherited from interface org.refcodes.mixin.FilenameExtensionAccessor
org.refcodes.mixin.FilenameExtensionAccessor.FilenameExtensionBuilder<B extends org.refcodes.mixin.FilenameExtensionAccessor.FilenameExtensionBuilder<B>>, org.refcodes.mixin.FilenameExtensionAccessor.FilenameExtensionMutator, org.refcodes.mixin.FilenameExtensionAccessor.FilenameExtensionProperty
Nested classes/interfaces inherited from interface org.refcodes.mixin.FilenameSuffixAccessor
org.refcodes.mixin.FilenameSuffixAccessor.FilenameSuffixBuilder<B extends org.refcodes.mixin.FilenameSuffixAccessor.FilenameSuffixBuilder<B>>, org.refcodes.mixin.FilenameSuffixAccessor.FilenameSuffixMutator, org.refcodes.mixin.FilenameSuffixAccessor.FilenameSuffixProperty
-
Enum Constant Summary
Enum ConstantDescriptionBASE64 encoded data.Chaos encrypted encoded data.Chaos encrypted and base 64 encoded data.The file suffix used for files containing a single cipher version.Windows configuration filename extension. -
Method Summary
Modifier and TypeMethodDescriptionRetrieves the filename extension.A filename suffix included the prefixed dot (".") of the file name filename extension.static FilenameExtension
toFileNameExtension
(String aFilename) Determines the filename'sFilenameExtension
definition.static String
toRawFileNameExtension
(String aFilename) Determines the filename's extension.static FilenameExtension
Returns the enum constant of this type with the specified name.static FilenameExtension[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
TEMP
-
BACKUP
-
TAR
-
GZIP
-
TAR_GZIP
-
CSV
-
TXT
-
JAR
-
ZIP
-
SH
-
CIPHER_VERSION
The file suffix used for files containing a single cipher version. -
PROPERTIES
-
JSON
-
TOML
-
YAML
-
XML
-
INI
Windows configuration filename extension. -
BASE64
BASE64 encoded data. -
CHAOS64
Chaos encrypted and base 64 encoded data. -
CHAOS
Chaos encrypted encoded data. -
TIFF
-
GIF
-
PNG
-
BMP
-
JPG
-
-
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
-
getFilenameSuffix
A filename suffix included the prefixed dot (".") of the file name filename extension. Gets the extension with a prefixed dot (".") for directly appending it to a base filename.- Specified by:
getFilenameSuffix
in interfaceorg.refcodes.mixin.FilenameSuffixAccessor
- Returns:
- the extension including a prefixed dot (".");
-
getFilenameExtension
Retrieves the filename extension. A filename extensions does not(!) contain the dot "." separating the extension from the name, e.g. "ini" (instead of ".ini").- Specified by:
getFilenameExtension
in interfaceorg.refcodes.mixin.FilenameExtensionAccessor
- Returns:
- The filename extension stored by the filename extension property.
-
toRawFileNameExtension
Determines the filename's extension.- Parameters:
aFilename
- The filename for which to determine the filename extension.- Returns:
- The filename extension or null if it has none extension.
-
toFileNameExtension
Determines the filename'sFilenameExtension
definition.- Parameters:
aFilename
- The filename for which to determine theFilenameExtension
.- Returns:
- The
FilenameExtension
or null if it has none extension.
-