net.grelf.image
Class ImageLoader

java.lang.Object
  extended by net.grelf.image.ImageLoader

public class ImageLoader
extends java.lang.Object

Loads images from files.


Constructor Summary
ImageLoader()
           
 
Method Summary
static java.lang.String getFormat(java.lang.String filename)
          Get the format name as used by ImageIO readers, from the file extension.
static Image load(java.io.File file)
          Load the first image in the file and, if available, its metadata.
static Image load(java.lang.String imFilePath)
          Load the first image in the file and, if available, its metadata.
static java.util.List<Image> loadAll(java.io.File file)
          For cases where the file may contain more than one image, load all of them.
static java.util.List<Image> loadAll(java.lang.String imFilePath)
          For cases where the file may contain more than one image, load all of them.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ImageLoader

public ImageLoader()
Method Detail

getFormat

public static java.lang.String getFormat(java.lang.String filename)
Get the format name as used by ImageIO readers, from the file extension.


load

public static Image load(java.lang.String imFilePath)
Load the first image in the file and, if available, its metadata.


load

public static Image load(java.io.File file)
Load the first image in the file and, if available, its metadata.


loadAll

public static java.util.List<Image> loadAll(java.lang.String imFilePath)
For cases where the file may contain more than one image, load all of them.


loadAll

public static java.util.List<Image> loadAll(java.io.File file)
For cases where the file may contain more than one image, load all of them.