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.io.InputStream is, java.io.OutputStream os, int width, int height)
          Convert one image format to another
 
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.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
Returns:
true for successful conversion, false otherwise