public class ImageFlavor
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static ImageFlavor |
BUFFERED_IMAGE
An image in form of a BufferedImage instance
|
static ImageFlavor |
GRAPHICS2D
An image in form of a Graphics2DImage (can be painted on a Graphics2D interface)
|
static ImageFlavor |
RAW
An image in form of a raw PNG file/stream
|
static ImageFlavor |
RAW_CCITTFAX
An image in form of a raw CCITTFax stream
|
static ImageFlavor |
RAW_EMF
An image in form of a raw EMF (Windows Enhanced Metafile) file/stream
|
static ImageFlavor |
RAW_EPS
An image in form of a raw EPS (Encapsulated PostScript) file/stream
|
static ImageFlavor |
RAW_JPEG
An image in form of a raw JPEG/JFIF file/stream
|
static ImageFlavor |
RAW_LZW
An image in form of a raw LZW file/stream
|
static ImageFlavor |
RAW_PNG
An image in form of a raw PNG file/stream
|
static ImageFlavor |
RAW_TIFF
An image in form of a raw TIFF file/stream
|
static ImageFlavor |
RENDERED_IMAGE
An image in form of a RenderedImage instance
|
static ImageFlavor |
XML_DOM
An XML-based image in form of a W3C DOM instance
|
Constructor and Description |
---|
ImageFlavor(java.lang.String name)
Constructs a new ImageFlavor.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getMimeType()
Returns the MIME type that the image flavor represents if a MIME type is available.
|
java.lang.String |
getName()
Returns the name of the ImageFlavor.
|
java.lang.String |
getNamespace()
Returns the XML namespace URI that the image flavor represents if such a namespace URI
is available.
|
int |
hashCode() |
boolean |
isCompatible(ImageFlavor flavor)
Indicates whether a particular image flavor is compatible with this one.
|
java.lang.String |
toString() |
public static final ImageFlavor RENDERED_IMAGE
public static final ImageFlavor BUFFERED_IMAGE
public static final ImageFlavor XML_DOM
public static final ImageFlavor RAW
public static final ImageFlavor RAW_PNG
public static final ImageFlavor RAW_JPEG
public static final ImageFlavor RAW_TIFF
public static final ImageFlavor RAW_EMF
public static final ImageFlavor RAW_EPS
public static final ImageFlavor RAW_LZW
public static final ImageFlavor RAW_CCITTFAX
public static final ImageFlavor GRAPHICS2D
public ImageFlavor(java.lang.String name)
name
- the name of the flavor (must be unique)public java.lang.String getName()
public java.lang.String getMimeType()
public java.lang.String getNamespace()
public boolean isCompatible(ImageFlavor flavor)
flavor
- the other image flavorpublic int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
Copyright 1999-2012 The Apache Software Foundation. All Rights Reserved.