Utils
Class JAIutils

java.lang.Object
  extended by Utils.JAIutils

public class JAIutils
extends java.lang.Object

Class containing utility operations on JAI.


Constructor Summary
JAIutils()
           
 
Method Summary
static boolean isSupportedFormat(java.lang.String url)
          Checks whether a given URL refers to a supported image format.
static javax.media.jai.PlanarImage resize(javax.media.jai.PlanarImage image)
          Resizes an image according to the maximum dimensions specified in the properties.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JAIutils

public JAIutils()
Method Detail

resize

public static javax.media.jai.PlanarImage resize(javax.media.jai.PlanarImage image)
Resizes an image according to the maximum dimensions specified in the properties.

Parameters:
image - Input image to be resized.
Returns:
The resized image.

isSupportedFormat

public static boolean isSupportedFormat(java.lang.String url)
Checks whether a given URL refers to a supported image format.

Parameters:
url - The image URL.
Returns:
true if the URL refers to a supported format, false otherwise.