lt.monarch.image
Class AbstractEncoder

java.lang.Object
  extended by lt.monarch.image.AbstractEncoder
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
GIFEncoder, JPEGEncoder, PNGEncoder, PNGEncoderJavaIO, TIFFEncoder, WBMPEncoder

public abstract class AbstractEncoder
extends java.lang.Object
implements java.io.Serializable

See Also:
Serialized Form

Field Summary
Modifier and Type Field and Description
protected  java.awt.Image image
          Image instance
 
Constructor Summary
Constructor and Description
AbstractEncoder()
           
 
Method Summary
Modifier and Type Method and Description
abstract  void encode(java.awt.Image _image, java.io.OutputStream outputStream)
           
abstract  java.lang.String getContentType()
          Returns content type string
protected  void readObject(java.io.ObjectInputStream in)
          Reads from serialization stream
protected  void writeObject(java.io.ObjectOutputStream out)
          Writes to serialization stream
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

image

protected java.awt.Image image
Image instance

Constructor Detail

AbstractEncoder

public AbstractEncoder()
Method Detail

encode

public abstract void encode(java.awt.Image _image,
                            java.io.OutputStream outputStream)
                     throws java.io.IOException,
                            java.lang.InterruptedException
Throws:
java.io.IOException
java.lang.InterruptedException

getContentType

public abstract java.lang.String getContentType()
Returns content type string


writeObject

protected void writeObject(java.io.ObjectOutputStream out)
                    throws java.io.IOException
Writes to serialization stream

Parameters:
out - serialization stream
Throws:
java.io.IOException - exception thrown if something goes wrong

readObject

protected void readObject(java.io.ObjectInputStream in)
                   throws java.io.IOException,
                          java.lang.ClassNotFoundException
Reads from serialization stream

Parameters:
in - input serialization stream
Throws:
java.io.IOException - exception thrown if something goes wrong
java.lang.ClassNotFoundException