|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.jmage.encoder.DefaultImageEncoder
public class DefaultImageEncoder
Encodes the most popular images types "bmp", "png", "jpg", and "tif"
Field Summary | |
---|---|
static java.lang.String |
BMP
|
protected com.sun.media.jai.codec.ImageEncodeParam |
encodeParam
|
protected java.lang.String |
encodingFormat
|
static java.util.Map |
encodingFormats
|
static org.apache.log4j.Logger |
log
|
static java.lang.String |
TIF
|
static java.lang.String |
TIFF
|
Constructor Summary | |
---|---|
DefaultImageEncoder()
Default Constructor |
Method Summary | |
---|---|
boolean |
canHandle(ImageRequest request)
Test whether the ImageEncoder can handle the format |
void |
configure(ApplicationContext context)
Configure |
byte[] |
createFrom(ImageRequest request)
Encode the image in the specified format |
void |
initialize(ImageRequest request)
Initialize the ImageEncoder for a particular encodingformat using Properties |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String BMP
public static final java.lang.String TIF
public static final java.lang.String TIFF
public static java.util.Map encodingFormats
public static org.apache.log4j.Logger log
protected java.lang.String encodingFormat
protected com.sun.media.jai.codec.ImageEncodeParam encodeParam
Constructor Detail |
---|
public DefaultImageEncoder()
Method Detail |
---|
public void configure(ApplicationContext context)
configure
in interface Configurable
context
- public boolean canHandle(ImageRequest request)
canHandle
in interface ImageEncoder
request
- the imageRequest.
public void initialize(ImageRequest request) throws CodecException
initialize
in interface ImageEncoder
request
-
CodecException
public byte[] createFrom(ImageRequest request) throws CodecException
createFrom
in interface ImageEncoder
request
- the ImageRequest
CodecException
public java.lang.String toString()
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |