public enum FileFormat extends Enum<FileFormat>
| Modifier and Type | Method and Description |
|---|---|
String |
description()
Returns the description of the file format.
|
String |
extension()
Returns the extension of the file format.
|
static FileFormat |
getFileFormat(String s)
Returns the file format instance that corresponds to the given abbrevation
|
static Collection<FileFormat> |
getFileFormats(String s)
Returns a collection of file formats parsed from the given string which
has to be in the format "[format1,...,formatn]".
|
String |
toString() |
static FileFormat |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static FileFormat[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final FileFormat TGF
public static final FileFormat APX
public static final FileFormat CNF
public static FileFormat[] values()
for (FileFormat c : FileFormat.values()) System.out.println(c);
public static FileFormat valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic String extension()
public String description()
public String toString()
toString in class Enum<FileFormat>public static FileFormat getFileFormat(String s)
s - some string describing a file formatpublic static Collection<FileFormat> getFileFormats(String s)
s - some stringCopyright © 2018. All rights reserved.