echopoint.image
Interface ImageEncoder
- All Superinterfaces:
- java.io.Serializable
- All Known Implementing Classes:
- GifEncoder, PngEncoder
public interface ImageEncoder
- extends java.io.Serializable
The ImageEncoder
interface specifies an object that
can encode image data to an output stream. It also indicates what
MIME content type is encoded.
An implementation of this class should provide a public constructor
with no arguments, so that the encoder can be serialized.
Method Summary |
void |
encode(java.awt.Image image,
java.io.OutputStream out)
|
java.lang.String |
getContentType()
|
encode
void encode(java.awt.Image image,
java.io.OutputStream out)
throws java.io.IOException
- Throws:
java.io.IOException
getContentType
java.lang.String getContentType()