net.xoetrope.optional.laf.synth.batik
Class PngTranscoderWrapper

java.lang.Object
  extended by net.xoetrope.optional.laf.synth.batik.PngTranscoderWrapper
All Implemented Interfaces:
ImageConverter

public class PngTranscoderWrapper
extends java.lang.Object
implements ImageConverter

Wrap the Batik PNGTranscoder to support dynamic loading

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


Constructor Summary
PngTranscoderWrapper()
           
 
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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PngTranscoderWrapper

public PngTranscoderWrapper()
Method Detail

convert

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

Specified by:
convert in interface ImageConverter
Parameters:
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
name - a unique name for the image
Returns:
true for successful conversion, false otherwise

getOutputExt

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

Specified by:
getOutputExt in interface ImageConverter