|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.jmage.encoder.JDKImageEncoder
public class JDKImageEncoder
Use JDK native methods to encode images
Field Summary | |
---|---|
protected com.sun.media.jai.codec.ImageEncodeParam |
encodeParam
|
protected java.lang.String |
encodingFormat
|
static java.util.Map |
encodingFormats
|
static java.lang.String |
JPEG
|
static java.lang.String |
JPG
|
static org.apache.log4j.Logger |
log
|
static java.lang.String |
PNG
|
Constructor Summary | |
---|---|
JDKImageEncoder()
Default Constructor |
Method Summary | |
---|---|
boolean |
canHandle(ImageRequest request)
Test whether the ImageEncoder can handle the request |
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 |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String PNG
public static final java.lang.String JPG
public static final java.lang.String JPEG
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 JDKImageEncoder()
Method Detail |
---|
public void configure(ApplicationContext context)
configure
in interface Configurable
context
- public boolean canHandle(ImageRequest request)
ImageEncoder
canHandle
in interface ImageEncoder
request
- the ImageRequest
public void initialize(ImageRequest request) throws CodecException
ImageEncoder
initialize
in interface ImageEncoder
CodecException
public byte[] createFrom(ImageRequest request) throws CodecException
ImageEncoder
createFrom
in interface ImageEncoder
request
- the imageRequest
CodecException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |