|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Object java.lang.Enum<DataHandlerTypes> com.jstatcom.io.DataHandlerTypes
public enum DataHandlerTypes
Enumeration of all data handler types.
Enum Constant Summary | |
---|---|
DAT
DAT files. |
|
EXCEL
XLS files. |
|
GAUSS_DAT
Gauss .dat files. |
|
GAUSS_FMT
Gauss .fmt files. |
|
MATLAB
Matlab .m files version 5. |
Method Summary | |
---|---|
abstract boolean |
canWriteFormat()
Gets whether it is possible to write files in the represented type. |
abstract java.lang.String |
getFileExtension()
Gets a string with the file extension associated with files that are handled by this , for example "xls" for Excel files, or
"mat" for Matlab files. |
abstract javax.swing.filechooser.FileFilter |
getFileFilter()
Gets the file filer associated with this type. |
abstract DataHandler |
getHandler()
Gets the import handler of this type. |
static DataHandlerTypes |
getTypeFromFileName(java.lang.String fName)
Gets the handler type from the filename. |
static DataHandlerTypes |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. |
static DataHandlerTypes[] |
values()
Returns an array containing the constants of this enum type, in the order they are declared. |
Methods inherited from class java.lang.Enum |
---|
compareTo, equals, 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 DataHandlerTypes DAT
public static final DataHandlerTypes EXCEL
public static final DataHandlerTypes GAUSS_FMT
public static final DataHandlerTypes GAUSS_DAT
public static final DataHandlerTypes MATLAB
Method Detail |
---|
public static DataHandlerTypes[] values()
for (DataHandlerTypes c : DataHandlerTypes.values()) System.out.println(c);
public static DataHandlerTypes 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 abstract DataHandler getHandler()
public abstract javax.swing.filechooser.FileFilter getFileFilter()
public abstract java.lang.String getFileExtension()
this
, for example "xls" for Excel files, or
"mat" for Matlab files.
public abstract boolean canWriteFormat()
true
if files can be written, false
otherwisepublic static DataHandlerTypes getTypeFromFileName(java.lang.String fName)
DAT
is returned
as default.
fName
- the filename with a descriptive suffix
java.lang.IllegalArgumentException
- if (fName == null)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |