|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.jmage.encoder.EncoderManager
public class EncoderManager
Manages ImageEncoders.
Field Summary | |
---|---|
protected java.util.List |
imageEncoders
|
protected static org.apache.log4j.Logger |
log
|
Constructor Summary | |
---|---|
protected |
EncoderManager()
|
|
EncoderManager(java.util.List imageEncoders)
Creates a EncoderManager for an array of given ImageEncoders |
Method Summary | |
---|---|
boolean |
canHandle(ImageRequest request)
Test whether the ImageEncoder can handle the format |
void |
configure(ApplicationContext context)
Configure encoder properties |
void |
handle(ImageRequest request)
Encodes a JAI PlanarImage into a specific 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 |
---|
protected java.util.List imageEncoders
protected static org.apache.log4j.Logger log
Constructor Detail |
---|
protected EncoderManager()
public EncoderManager(java.util.List imageEncoders)
imageEncoders
- Method Detail |
---|
public void configure(ApplicationContext context)
configure
in interface Configurable
context
- public void handle(ImageRequest request) throws JmageException
handle
in interface RequestHandler
request
- the ImageRequest
JmageException
- if the image couldn't be encoded or the format isn't supported.public boolean canHandle(ImageRequest request)
request
- ImageRequest
public void initialize(ImageRequest request) throws CodecException
request
-
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 |