com.xmlserv.app.images
Class Converter

java.lang.Object
  |
  +--com.xmlserv.app.images.Converter

public class Converter
extends java.lang.Object


Constructor Summary
Converter()
           
 
Method Summary
static void convert(Image in, Image out)
          Read data from Image in and write to out with Format as set in the resp.
static void mkPreview(java.lang.String in, java.lang.String out, int maxDim)
          Create resized version of the given image.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Converter

public Converter()
Method Detail

convert

public static void convert(Image in,
                           Image out)
                    throws XMLServException
Read data from Image in and write to out with Format as set in the resp. Image isntances.

mkPreview

public static void mkPreview(java.lang.String in,
                             java.lang.String out,
                             int maxDim)
                      throws XMLServException
Create resized version of the given image. Depends upon the JIMI package available at http://java.sun.com/products/jimi/