net.xoetrope.optional.laf
Interface ImageConverter

All Known Implementing Classes:
PngTranscoderWrapper, SvgImageTranscoder, TiffTranscoderWrapper

public interface ImageConverter

An interface to support image conversion

Copyright (c) Xoetrope Ltd., 2001-2005
License: see license.txt $Revision: 1.1 $


Method Summary
 boolean convert(java.lang.String name, java.io.InputStream is, java.io.OutputStream os, int width, int height)
          Convert one image format to another
 java.lang.String getOutputExt()
          Get the extension of the file type that this converter produces
 

Method Detail

convert

boolean convert(java.lang.String name,
                java.io.InputStream is,
                java.io.OutputStream os,
                int width,
                int height)
Convert one image format to another

Parameters:
name - a unique name for the image
is - the input stream for the source image
os - the output steam for the resulting/converted image
width - the desired image width
height - the desired image height
Returns:
true for successful conversion, false otherwise

getOutputExt

java.lang.String getOutputExt()
Get the extension of the file type that this converter produces