|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.zkoss.image.encoder.ImageEncoders
public class ImageEncoders
The factory of the image encodes.
| Constructor Summary | |
|---|---|
ImageEncoders()
|
|
| Method Summary | |
|---|---|
static java.lang.Class |
getEncoderClass(java.lang.String format)
Returns the class of the image encoder for the specified format, or null if not specified yet. |
static ImageEncoder |
newInstance(java.lang.String format)
Instantiates and returns the image encoder for the specified format. |
static java.lang.Class |
setEncoderClass(java.lang.String format,
java.lang.Class klass)
Sets the class of the image encoder for the specified format. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ImageEncoders()
| Method Detail |
|---|
public static ImageEncoder newInstance(java.lang.String format)
format - The image format of the ZK image being encoded to.
It can be "png" or "jpeg".
java.lang.IllegalArgumentException - if the encoder of the specified
format is not found
SystemException - if failed to instantiate the encoder
public static java.lang.Class setEncoderClass(java.lang.String format,
java.lang.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.
public static java.lang.Class getEncoderClass(java.lang.String format)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||