/** * Returns wether the JAI library is available by checking the available formats. * * @return <code>true</code> if JAI is available * @see #getSupportedFormats() */ public static boolean isJaiAvailable() { return getSupportedFormats().size() > 0; }