org.im4java.core
Class Stream2BufferedImage

java.lang.Object
  extended by org.im4java.core.Stream2BufferedImage
All Implemented Interfaces:
OutputConsumer

public class Stream2BufferedImage
extends java.lang.Object
implements OutputConsumer

This helper class reads an InputStream and creates a BufferedImage.

Version:
$Revision: 1.1 $
Author:
$Author: bablokb, Bruno Mascret (warnings) $

Field Summary
private  java.awt.image.BufferedImage iImage
          The BufferedImage.
 
Constructor Summary
Stream2BufferedImage()
          The constructor
 
Method Summary
 void consumeOutput(java.io.InputStream pInputStream)
          Read the output of the command and create a BufferedImage
 java.awt.image.BufferedImage getImage()
          Return the BufferedImage.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

iImage

private java.awt.image.BufferedImage iImage
The BufferedImage.

Constructor Detail

Stream2BufferedImage

public Stream2BufferedImage()
The constructor

Method Detail

consumeOutput

public void consumeOutput(java.io.InputStream pInputStream)
                   throws java.io.IOException
Read the output of the command and create a BufferedImage

Specified by:
consumeOutput in interface OutputConsumer
Throws:
java.io.IOException
See Also:
OutputConsumer.consumeOutput(java.io.InputStream)

getImage

public java.awt.image.BufferedImage getImage()
Return the BufferedImage.