org.jmage.encoder
Interface ImageEncoder

All Superinterfaces:
Configurable
All Known Implementing Classes:
DefaultImageEncoder, GifEncoder, JDKImageEncoder

public interface ImageEncoder
extends Configurable

Encode an Image in an output format


Method Summary
 boolean canHandle(ImageRequest request)
          Test whether the ImageEncoder can handle the request
 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 interface org.jmage.Configurable
configure
 

Method Detail

canHandle

boolean canHandle(ImageRequest request)
Test whether the ImageEncoder can handle the request

Parameters:
request - the ImageRequest
Returns:
[true | false]

initialize

void initialize(ImageRequest request)
                throws CodecException
Initialize the ImageEncoder for a particular encodingformat using Properties

Parameters:
request -
Throws:
CodecException

createFrom

byte[] createFrom(ImageRequest request)
                  throws CodecException
Encode the image in the specified format

Parameters:
request - the imageRequest
Returns:
the encoded image as a byte array.
Throws:
CodecException


Copyright © 2004-2008 Sourceforge. All Rights Reserved.