railo.runtime.img
Class JAIUtil

java.lang.Object
  extended by railo.runtime.img.JAIUtil

public class JAIUtil
extends Object


Constructor Summary
JAIUtil()
           
 
Method Summary
static String[] getSupportedReadFormat()
           
static String[] getSupportedWriteFormat()
           
static boolean isJAISupported()
           
static boolean isSupportedReadFormat(String format)
           
static boolean isSupportedWriteFormat(String format)
           
static BufferedImage read(InputStream is, String format)
           
static BufferedImage read(Resource res)
           
static void write(BufferedImage img, OutputStream os, String format)
           
static void write(BufferedImage img, Resource res, String format)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JAIUtil

public JAIUtil()
Method Detail

isSupportedWriteFormat

public static boolean isSupportedWriteFormat(String format)

isSupportedReadFormat

public static boolean isSupportedReadFormat(String format)

getSupportedReadFormat

public static String[] getSupportedReadFormat()

getSupportedWriteFormat

public static String[] getSupportedWriteFormat()

isJAISupported

public static boolean isJAISupported()

read

public static BufferedImage read(Resource res)
                          throws IOException
Throws:
IOException

read

public static BufferedImage read(InputStream is,
                                 String format)
                          throws IOException
Throws:
IOException

write

public static void write(BufferedImage img,
                         Resource res,
                         String format)
                  throws IOException
Throws:
IOException

write

public static void write(BufferedImage img,
                         OutputStream os,
                         String format)
                  throws IOException
Throws:
IOException


Copyright © 2012 Railo