com.dynalivery.saffron.client
Class FileType

java.lang.Object
  extended bycom.dynalivery.saffron.client.FileType

public class FileType
extends java.lang.Object

This class defines the allowable Saffron input file types


Field Summary
static int HTML
          HTML
static int PDF
          Adobe PDF
static int RASTER
          Raster Images
static int RTF
          Rich Text Format
static int SVG
          Scalable Vector Graphics (SVG)
protected static java.lang.String[] typeStrings
           
 
Constructor Summary
FileType()
           
 
Method Summary
static java.lang.String getTypeString(int fileType)
          Returns a descriptive String for the specified file type
static void validate(int fileType)
          Validates the specified file type
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PDF

public static final int PDF
Adobe PDF

See Also:
Constant Field Values

HTML

public static final int HTML
HTML

See Also:
Constant Field Values

RTF

public static final int RTF
Rich Text Format

See Also:
Constant Field Values

RASTER

public static final int RASTER
Raster Images

See Also:
Constant Field Values

SVG

public static final int SVG
Scalable Vector Graphics (SVG)

See Also:
Constant Field Values

typeStrings

protected static final java.lang.String[] typeStrings
Constructor Detail

FileType

public FileType()
Method Detail

validate

public static void validate(int fileType)
                     throws InvalidParameterException
Validates the specified file type

Parameters:
fileType - a file type (e.g. FileType.PDF)
Throws:
InvalidParameterException - thrown if file type is invalid

getTypeString

public static java.lang.String getTypeString(int fileType)
                                      throws InvalidParameterException
Returns a descriptive String for the specified file type

Parameters:
fileType - a file type (e.g. FileType.PDF)
Returns:
a descriptive String for the specified file type
Throws:
InvalidParameterException - thrown if file type is invalid