EchoPoint
1.0

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.

Author:
Brad Baker

Method Summary
 void encode(java.awt.Image image, java.io.OutputStream out)
           
 java.lang.String getContentType()
           
 

Method Detail

encode

public void encode(java.awt.Image image,
                   java.io.OutputStream out)
            throws java.io.IOException
Throws:
java.io.IOException

getContentType

public java.lang.String getContentType()

EchoPoint
1.0