The im4java Library, Version 1.4.0

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.

Since:
0.95
Version:
$Revision: 1.4 $
Author:
$Author: bablokb $

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
 

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.


The im4java Library, Version 1.4.0

Released under the LGPL, (c) Bernhard Bablok 2008-2010
Homepage: http://im4java.sourceforge.net/