MimeEnabledImageFlavor, SimpleRefinedImageFlavor, XMLNamespaceEnabledImageFlavorpublic 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(String name,
ImageFlavor parentFlavor) |
Constructs a new image flavor.
|
protected |
RefinedImageFlavor(ImageFlavor parentFlavor) |
Constructs a new image flavor.
|
| Modifier and Type | Method | Description |
|---|---|---|
String |
getMimeType() |
Returns the MIME type that the image flavor represents if a MIME type is available.
|
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, toStringprotected RefinedImageFlavor(ImageFlavor parentFlavor)
parentFlavor - the parent image flavorprotected RefinedImageFlavor(String name, ImageFlavor parentFlavor)
parentFlavor - the parent image flavorname - the name of the flavor (must be unique)public ImageFlavor getParentFlavor()
public String getMimeType()
getMimeType in class ImageFlavorpublic String getNamespace()
getNamespace in class ImageFlavorpublic boolean isCompatible(ImageFlavor flavor)
isCompatible in class ImageFlavorflavor - the other image flavorCopyright © 2018 Apache Software Foundation. All rights reserved.