public class ImageEncoders extends Object
| Constructor and Description |
|---|
ImageEncoders() |
| Modifier and Type | Method and Description |
|---|---|
static Class |
getEncoderClass(String format)
Returns the class of the image encoder for the specified format,
or null if not specified yet.
|
static ImageEncoder |
newInstance(String format)
Instantiates and returns the image encoder for the specified format.
|
static Class |
setEncoderClass(String format,
Class klass)
Sets the class of the image encoder for the specified format.
|
public static ImageEncoder newInstance(String format)
format - The image format of the ZK image being encoded to.
It can be "png" or "jpeg".IllegalArgumentException - if the encoder of the specified
format is not foundSystemException - if failed to instantiate the encoderpublic static Class setEncoderClass(String format, Class klass)
An instance of the specified class is instantiated each
time newInstance(java.lang.String) is called.
format - The image format of the ZK image being encoded to.
It can be "png" or "jpeg".klass - the class of the image encoder.
It must implement ImageEncoder.Copyright © 2018. All rights reserved.