Package org.im4java.core
Class Stream2BufferedImage
- java.lang.Object
-
- 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.
-
-
Constructor Summary
Constructors Constructor Description Stream2BufferedImage()
The constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
consumeOutput(java.io.InputStream pInputStream)
Read the output of the command and create a BufferedImagejava.awt.image.BufferedImage
getImage()
Return the BufferedImage.
-
-
-
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 interfaceOutputConsumer
- Throws:
java.io.IOException
- See Also:
OutputConsumer.consumeOutput(java.io.InputStream)
-
getImage
public java.awt.image.BufferedImage getImage()
Return the BufferedImage.
-
-