lt.monarch.image
Class AbstractEncoder
java.lang.Object
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
protected java.awt.Image |
image
Image instance |
Method Summary
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 |
image
protected java.awt.Image image
- Image instance
AbstractEncoder
public AbstractEncoder()
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