public class ImageFormat
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static ImageFormat[] |
AVAILABLE_FORMATS |
static ImageFormat |
GIF |
static ImageFormat |
JPEG |
static java.lang.String |
REVISION |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getAlias()
Returns lower case alias of this format as a coma seperated string.
|
java.lang.String |
getExtension()
Returns the prefered filename extension of this format.
|
static ImageFormat |
getImageFormat(java.lang.String format)
Returns an ImageFormat instance from a string.
|
java.lang.String |
getMimeType()
Returns Mime Type of this format.
|
java.lang.String |
toString()
Implementation of toString() method.
|
public static final java.lang.String REVISION
public static final ImageFormat JPEG
public static final ImageFormat GIF
public static final ImageFormat[] AVAILABLE_FORMATS
public static ImageFormat getImageFormat(java.lang.String format)
format
- the ImageFormat corresponding to the given String
or null if format not available.AVAILABLE_FORMATS
public java.lang.String getExtension()
public java.lang.String getMimeType()
public java.lang.String getAlias()
public java.lang.String toString()
toString
in class java.lang.Object
getAlias()
Copyright © 2001-2010 Jalios SA. All Rights Reserved.