Package org.c02e.jpgpj
Enum FileMetadata.Format
- All Implemented Interfaces:
Serializable
,Comparable<FileMetadata.Format>
- Enclosing class:
FileMetadata
Format for line-ending normalization.
-
Enum Constant Summary
Enum Constants -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic FileMetadata.Format
byCode
(char code) char
getCode()
static FileMetadata.Format
Returns the enum constant of this type with the specified name.static FileMetadata.Format[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
BINARY
No line-ending normalization (default). -
TEXT
Text with CRLF line-endings. -
UTF8
UTF-8 encoded text with CRLF line-endings.
-
-
Field Details
-
code
private final char code
-
-
Constructor Details
-
Format
private Format(char code)
-
-
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
-
getCode
public char getCode() -
byCode
-