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
限定符 | 构造器和说明 |
---|---|
protected |
RefinedImageFlavor(ImageFlavor parentFlavor)
Constructs a new image flavor.
|
protected |
RefinedImageFlavor(String name,
ImageFlavor parentFlavor)
Constructs a new image flavor.
|
限定符和类型 | 方法和说明 |
---|---|
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, toString
protected 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
在类中 ImageFlavor
public String getNamespace()
getNamespace
在类中 ImageFlavor
public boolean isCompatible(ImageFlavor flavor)
isCompatible
在类中 ImageFlavor
flavor
- the other image flavorCopyright 1999-2016 The Apache Software Foundation. All Rights Reserved.