Class ImageEncoderRegistry
- java.lang.Object
-
- org.pentaho.reporting.libraries.base.encoder.ImageEncoderRegistry
-
public class ImageEncoderRegistry extends Object
-
-
Field Summary
Fields Modifier and Type Field Description static String
IMAGE_JPEG
static String
IMAGE_PNG
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addEncoder(String mimeType, String encoderClass)
ImageEncoder
createEncoder(String mimeType)
static ImageEncoderRegistry
getInstance()
String[]
getRegisteredEncoders()
boolean
isEncoderAvailable(String mimeType)
-
-
-
Field Detail
-
IMAGE_PNG
public static final String IMAGE_PNG
- See Also:
- Constant Field Values
-
IMAGE_JPEG
public static final String IMAGE_JPEG
- See Also:
- Constant Field Values
-
-
Method Detail
-
getInstance
public static ImageEncoderRegistry getInstance()
-
isEncoderAvailable
public boolean isEncoderAvailable(String mimeType)
-
getRegisteredEncoders
public String[] getRegisteredEncoders()
-
createEncoder
public ImageEncoder createEncoder(String mimeType) throws UnsupportedEncoderException
- Throws:
UnsupportedEncoderException
-
-