public class JAIOutputConsumer extends Object implements org.im4java.process.OutputConsumer
OutputConsumer
that uses JAI to read the input stream and
turns it into a BufferedImage
.Modifier and Type | Field and Description |
---|---|
protected BufferedImage |
m_Image
the buffered image that was read from the stream.
|
Constructor and Description |
---|
JAIOutputConsumer() |
Modifier and Type | Method and Description |
---|---|
void |
consumeOutput(InputStream stream)
Reads the input stream into a
BufferedImage . |
BufferedImage |
getImage()
Returns the image that was read from the stream.
|
protected BufferedImage m_Image
public void consumeOutput(InputStream stream) throws IOException
BufferedImage
.consumeOutput
in interface org.im4java.process.OutputConsumer
stream
- the stream to read fromIOException
- if reading from stream failspublic BufferedImage getImage()
Copyright © 2021 University of Waikato, Hamilton, NZ. All Rights Reserved.