org.ujmp.core.enums
Enum FileFormat

java.lang.Object
  extended by java.lang.Enum<FileFormat>
      extended by org.ujmp.core.enums.FileFormat
All Implemented Interfaces:
Serializable, Comparable<FileFormat>

public enum FileFormat
extends Enum<FileFormat>

Import and export formats that are supported.


Enum Constant Summary
AML
           
ARFF
           
ATOM
           
ATT
           
BMP
           
CSV
           
FILE
           
GIF
           
GRAPHML
           
HTML
           
ImapFolders
           
ImapMessages
           
JPG
           
LOG
           
M
           
MAT
           
MDB
           
MTX
           
NET
           
PDF
           
PLT
           
PNG
           
R
           
RAW
           
RSS
           
SER
           
SPARSECSV
           
STRING
           
TEX
           
TIFF
           
TXT
           
WAV
           
XLS
           
XML
           
 
Method Summary
 String getDescription()
           
 String[] getExtensions()
           
 FileFilter getFileFilter()
           
static FileFormat guess(File file)
           
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.
 
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

CSV

public static final FileFormat CSV

TXT

public static final FileFormat TXT

M

public static final FileFormat M

MAT

public static final FileFormat MAT

GIF

public static final FileFormat GIF

FILE

public static final FileFormat FILE

MDB

public static final FileFormat MDB

R

public static final FileFormat R

RSS

public static final FileFormat RSS

ATOM

public static final FileFormat ATOM

JPG

public static final FileFormat JPG

HTML

public static final FileFormat HTML

MTX

public static final FileFormat MTX

XLS

public static final FileFormat XLS

SER

public static final FileFormat SER

GRAPHML

public static final FileFormat GRAPHML

TEX

public static final FileFormat TEX

WAV

public static final FileFormat WAV

BMP

public static final FileFormat BMP

TIFF

public static final FileFormat TIFF

PLT

public static final FileFormat PLT

PDF

public static final FileFormat PDF

PNG

public static final FileFormat PNG

XML

public static final FileFormat XML

AML

public static final FileFormat AML

ARFF

public static final FileFormat ARFF

ATT

public static final FileFormat ATT

LOG

public static final FileFormat LOG

NET

public static final FileFormat NET

STRING

public static final FileFormat STRING

SPARSECSV

public static final FileFormat SPARSECSV

RAW

public static final FileFormat RAW

ImapMessages

public static final FileFormat ImapMessages

ImapFolders

public static final FileFormat ImapFolders
Method Detail

values

public static FileFormat[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
for (FileFormat c : FileFormat.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static FileFormat valueOf(String name)
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 name
NullPointerException - if the argument is null

getExtensions

public String[] getExtensions()

getFileFilter

public FileFilter getFileFilter()

getDescription

public String getDescription()

guess

public static FileFormat guess(File file)


Copyright © 2010. All Rights Reserved.