adams.core
Class JAIHelper

java.lang.Object
  extended by adams.core.JAIHelper

public class JAIHelper
extends Object

Helper class for JAI operations.

Version:
$Revision: 4649 $
Author:
fracpete (fracpete at waikato dot ac dot nz)

Constructor Summary
JAIHelper()
           
 
Method Summary
static void disableMediaLib()
          Disables the "java.lang.NoClassDefFoundError: com/sun/medialib/mlib/Image" exception.
static javax.media.jai.RenderedOp read(File file)
          Loads the specified file.
static javax.media.jai.RenderedOp read(String file)
          Loads the specified file.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JAIHelper

public JAIHelper()
Method Detail

disableMediaLib

public static void disableMediaLib()
Disables the "java.lang.NoClassDefFoundError: com/sun/medialib/mlib/Image" exception.

Taken from here


read

public static javax.media.jai.RenderedOp read(File file)
Loads the specified file.

Parameters:
file - the file to load
Returns:
the image

read

public static javax.media.jai.RenderedOp read(String file)
Loads the specified file.

Parameters:
file - the file to load
Returns:
the image


Copyright © 2012 University of Waikato, Hamilton, NZ. All Rights Reserved.