railo.runtime.img.coder
Class Coder

java.lang.Object
  extended by railo.runtime.img.coder.Coder

public abstract class Coder
extends Object


Method Summary
static Coder getInstance()
           
abstract  String[] getReaderFormatNames()
           
abstract  String[] getWriterFormatNames()
           
abstract  BufferedImage toBufferedImage(byte[] bytes, String format)
          translate a binary array to a buffered image
abstract  BufferedImage toBufferedImage(Resource res, String format)
          translate a file resource to a buffered image
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static Coder getInstance()

toBufferedImage

public abstract BufferedImage toBufferedImage(Resource res,
                                              String format)
                                       throws IOException
translate a file resource to a buffered image

Parameters:
res -
Returns:
Throws:
IOException

toBufferedImage

public abstract BufferedImage toBufferedImage(byte[] bytes,
                                              String format)
                                       throws IOException
translate a binary array to a buffered image

Parameters:
binary -
Returns:
Throws:
IOException

getWriterFormatNames

public abstract String[] getWriterFormatNames()

getReaderFormatNames

public abstract String[] getReaderFormatNames()


Copyright © 2012 Railo