|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Objectjava.lang.Enum<FileType>
net.talvi.puffinplot.data.FileType
public enum FileType
This fields of this enum represent the types of file that PuffinPlot can read.
Enum Constant Summary | |
---|---|
CUSTOM_TABULAR
A custom tabular file format defined by a FileFormat object |
|
PUFFINPLOT_NEW
the new PuffinPlot file format |
|
PUFFINPLOT_OLD
the old PuffinPlot file format |
|
TWOGEE
DAT file from 2G enterprises Long Core software |
|
UNKNOWN
unknown file format |
|
ZPLOT
TXT file in the format used by Steve Hurst's Zplot program |
Method Summary | |
---|---|
static FileType |
guess(java.io.File file)
Attempts to guess the type of a file from its name and contents. |
static FileType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. |
static FileType[] |
values()
Returns an array containing the constants of this enum type, in the order they are declared. |
Methods inherited from class java.lang.Enum |
---|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Enum Constant Detail |
---|
public static final FileType TWOGEE
public static final FileType ZPLOT
public static final FileType PUFFINPLOT_OLD
public static final FileType PUFFINPLOT_NEW
public static final FileType CUSTOM_TABULAR
public static final FileType UNKNOWN
Method Detail |
---|
public static FileType[] values()
for (FileType c : FileType.values()) System.out.println(c);
public static FileType valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.
java.lang.IllegalArgumentException
- if this enum type has no constant
with the specified name
java.lang.NullPointerException
- if the argument is nullpublic static FileType guess(java.io.File file) throws java.io.IOException
file
- the file for which to guess the type
UNKNOWN
if it could not be guessed
java.io.IOException
- if an I/O error occurred
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |