raja.io
Interface ImageReader


public interface ImageReader

An interface specifying objects that can read images. Images are decoded as instances of RenderedImage.

See Also:
ImageWriter

Method Summary
 Object getImageReadParam()
          Returns the current reading parameters.
 RenderedImage read()
          Returns a RenderedImage that contains the decoded image.
 void setImageReadParam(Object param)
          Sets the current reading parameters.
 

Method Detail

read

public RenderedImage read()
                   throws IOException
Returns a RenderedImage that contains the decoded image.
Returns:
a RenderedImage that contains the decoded image.
Throws:
IOException - if an I/O error occurs

getImageReadParam

public Object getImageReadParam()
Returns the current reading parameters. Concrete implementations of this interface should return an instance of the appropriate subclass or subinterface.
Returns:
the current reading parameters.

setImageReadParam

public void setImageReadParam(Object param)
Sets the current reading parameters. Concrete implementations of this interface may throw a RuntimeException if the param argument is not an instance of the appropriate subclass or subinterface.
Parameters:
param - the reading parameters to use.