Example usage for javax.imageio ImageReader getInput

List of usage examples for javax.imageio ImageReader getInput

Introduction

In this page you can find the example usage for javax.imageio ImageReader getInput.

Prototype

public Object getInput() 

Source Link

Document

Returns the ImageInputStream or other Object previously set as the input source.

Usage

From source file:it.tidalwave.imageio.test.ImageReaderTestSupport.java

/*******************************************************************************************************************
 * //from w  w w  . j  a v  a  2  s. c om
 * 
 ******************************************************************************************************************/
protected void close(final ImageReader ir) throws IOException {
    final ImageInputStream iis = (ImageInputStream) ir.getInput();
    iis.close();
    ir.dispose();
}