|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.sun.jimi.core.JimiWriter
JimiWriter provides more fine-grained control of the encoding process, and allows writing a series of images to a single image file.
Field Summary | |
protected JimiEncoder |
encoder
|
protected ProgressListener |
listener
|
protected FormatOptionSet |
options
|
protected FormatOptionSet |
overrideOptions
|
protected JimiImage |
sourceImage
|
protected JimiImageEnumeration |
sourceImageEnumeration
|
Constructor Summary | |
protected |
JimiWriter()
Create an uninitialized JimiWriter. |
protected |
JimiWriter(java.io.OutputStream output,
java.lang.String mimeType)
Create a JimiWriter. |
protected |
JimiWriter(java.lang.String filename)
Create a JimiWriter. |
protected |
JimiWriter(java.lang.String filename,
java.lang.String mimeType)
Create a JimiWriter. |
Method Summary | |
void |
clearProperties()
Deprecated. Use getOptions() |
java.lang.Object |
getPossibleValuesForProperty(java.lang.String name)
Deprecated. Use getOptions() |
java.lang.Object |
getProperty(java.lang.String name)
Deprecated. Use getOptions() |
java.lang.String |
getPropertyDescription(java.lang.String name)
Deprecated. Use getOptions() |
java.util.Enumeration |
getPropertyNames()
Deprecated. Use getOptions() |
protected void |
initJimiWriter(JimiEncoderFactory factory)
Initialize the writer. |
void |
putImage(java.io.OutputStream output)
Write the source to a stream. |
void |
putImage(java.lang.String filename)
Write the source to a file. |
protected void |
setMimeType(java.lang.String typeID)
Choose the mimetype of the format to save in. |
void |
setOptions(FormatOptionSet options)
Set the options to use for encoding. |
void |
setProgressListener(ProgressListener listener)
Register a ProgressListener to be informed of encoding progress. |
void |
setProperty(java.lang.String name,
java.lang.Object value)
Deprecated. Use getOptions() |
void |
setSource(java.awt.Image image)
Set the source image to be written. |
void |
setSource(java.awt.Image[] images)
Set a series of images as the source to be written. |
void |
setSource(java.awt.image.ImageProducer producer)
Set the source image to be written. |
void |
setSource(java.awt.image.ImageProducer[] producers)
Set a series of images as the source to be written. |
void |
setSource(JimiImage ji)
Set the source image to be written. |
void |
setSource(JimiImage[] images)
Set a series of images as the source to be written. |
void |
setSource(java.lang.Object[] images)
Set a series of images as the source to be written. |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Field Detail |
protected JimiEncoder encoder
protected JimiImage sourceImage
protected JimiImageEnumeration sourceImageEnumeration
protected FormatOptionSet options
protected FormatOptionSet overrideOptions
protected ProgressListener listener
Constructor Detail |
protected JimiWriter(java.lang.String filename, java.lang.String mimeType) throws JimiException
filename
- the filename to write tomimeType
- the mimetype of the format to write inprotected JimiWriter(java.lang.String filename) throws JimiException
filename
- the filename to write toprotected JimiWriter(java.io.OutputStream output, java.lang.String mimeType) throws JimiException
output
- the stream to write tomimeType
- the mimetype of the format to write inprotected JimiWriter()
Method Detail |
protected void setMimeType(java.lang.String typeID) throws JimiException
protected void initJimiWriter(JimiEncoderFactory factory) throws JimiException
public void setOptions(FormatOptionSet options)
public void setProgressListener(ProgressListener listener)
public void setSource(JimiImage ji) throws JimiException
ji
- the JimiImage to savepublic void setSource(java.awt.Image image) throws JimiException
ji
- the JimiImage to savepublic void setSource(java.awt.image.ImageProducer producer) throws JimiException
ji
- the JimiImage to savepublic void setSource(JimiImage[] images) throws JimiException
public void setSource(java.awt.image.ImageProducer[] producers) throws JimiException
public void setSource(java.awt.Image[] images) throws JimiException
public void setSource(java.lang.Object[] images) throws JimiException
images
- a JimiImage[], ImageProducer[], or Image[]public void putImage(java.lang.String filename) throws JimiException
public void putImage(java.io.OutputStream output) throws JimiException
public java.lang.Object getPossibleValuesForProperty(java.lang.String name) throws InvalidOptionException
public java.lang.String getPropertyDescription(java.lang.String name) throws InvalidOptionException
public void clearProperties()
public java.lang.Object getProperty(java.lang.String name)
public java.util.Enumeration getPropertyNames()
public void setProperty(java.lang.String name, java.lang.Object value) throws InvalidOptionException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |