Package org.im4java.core
Class Stream2BufferedImage
java.lang.Object
org.im4java.core.Stream2BufferedImage
- All Implemented Interfaces:
OutputConsumer
This helper class reads an InputStream and creates a BufferedImage.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidconsumeOutput(InputStream pInputStream) Read the output of the command and create a BufferedImagegetImage()Return the BufferedImage.
-
Constructor Details
-
Stream2BufferedImage
public Stream2BufferedImage()The constructor
-
-
Method Details
-
consumeOutput
Read the output of the command and create a BufferedImage- Specified by:
consumeOutputin interfaceOutputConsumer- Throws:
IOException- See Also:
-
getImage
Return the BufferedImage.
-