MimeEnabledImageFlavor
, SimpleRefinedImageFlavor
, XMLNamespaceEnabledImageFlavor
public abstract class RefinedImageFlavor extends ImageFlavor
BUFFERED_IMAGE, GRAPHICS2D, RAW, RAW_CCITTFAX, RAW_EMF, RAW_EPS, RAW_JPEG, RAW_LZW, RAW_PNG, RAW_TIFF, RENDERED_IMAGE, XML_DOM
Modifier | Constructor | Description |
---|---|---|
protected |
RefinedImageFlavor(java.lang.String name,
ImageFlavor parentFlavor) |
Constructs a new image flavor.
|
protected |
RefinedImageFlavor(ImageFlavor parentFlavor) |
Constructs a new image flavor.
|
Modifier and Type | Method | Description |
---|---|---|
java.lang.String |
getMimeType() |
Returns the MIME type that the image flavor represents if a MIME type is available.
|
java.lang.String |
getNamespace() |
Returns the XML namespace URI that the image flavor represents if such a namespace URI
is available.
|
ImageFlavor |
getParentFlavor() |
Returns the associated parent image flavor.
|
boolean |
isCompatible(ImageFlavor flavor) |
Indicates whether a particular image flavor is compatible with this one.
|
equals, getName, hashCode, toString
protected RefinedImageFlavor(ImageFlavor parentFlavor)
parentFlavor
- the parent image flavorprotected RefinedImageFlavor(java.lang.String name, ImageFlavor parentFlavor)
parentFlavor
- the parent image flavorname
- the name of the flavor (must be unique)public ImageFlavor getParentFlavor()
public java.lang.String getMimeType()
getMimeType
in class ImageFlavor
public java.lang.String getNamespace()
getNamespace
in class ImageFlavor
public boolean isCompatible(ImageFlavor flavor)
isCompatible
in class ImageFlavor
flavor
- the other image flavorCopyright 1999-2016 The Apache Software Foundation. All Rights Reserved.