com.dynalivery.saffron.client
Class ImageType

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

public class ImageType
extends java.lang.Object

This class defines the allowable image types


Field Summary
static int JPG
          a JPEG image
static int PNG
          a PNG (portable network graphic) image
protected static java.lang.String[] typeStrings
           
 
Constructor Summary
ImageType()
           
 
Method Summary
static java.lang.String getTypeString(int imageType)
          Returns a descriptive String for the specified image type
static void validate(int imageType)
          Validate the specified image type
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

JPG

public static final int JPG
a JPEG image

See Also:
Constant Field Values

PNG

public static final int PNG
a PNG (portable network graphic) image

See Also:
Constant Field Values

typeStrings

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

ImageType

public ImageType()
Method Detail

validate

public static void validate(int imageType)
                     throws InvalidParameterException
Validate the specified image type

Parameters:
imageType - the integer image type (e.g. ImageType.JPG)
Throws:
InvalidParameterException - thrown if image type is invalid

getTypeString

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

Parameters:
imageType - the integer image type (e.g. ImageType.JPG)
Returns:
a descriptive String for the specified image type
Throws:
InvalidParameterException - thrown if image type is invalid