org.apache.axis.components.image

Class MerlinIO

Implemented Interfaces:
ImageIO

public class MerlinIO
extends Component
implements ImageIO

JDK1.4 based Image I/O NOTE: NEEDS WORK!!!! NEEDS TO BE TESTED.
Author:
Davanum Srinivas
Since:
2.0

Method Summary

Image
loadImage(InputStream in)
Load an Image.
void
saveImage(String mimeType, Image image, OutputStream os)
Save an image.

Method Details

loadImage

public Image loadImage(InputStream in)
            throws Exception
Load an Image.
Specified by:
loadImage in interface ImageIO
Parameters:
in - the stream to load the image
Returns:
the Image

saveImage

public void saveImage(String mimeType,
                      Image image,
                      OutputStream os)
            throws Exception
Save an image.
Specified by:
saveImage in interface ImageIO
Parameters:
mimeType - the mime-type of the format to save the image
image - the image to save
os - the stream to write to

Copyright B) 2005 Apache Web Services Project. All Rights Reserved.