Package org.im4java.process
Class ArrayListOutputConsumer
- java.lang.Object
-
- org.im4java.process.ArrayListOutputConsumer
-
- All Implemented Interfaces:
OutputConsumer
public class ArrayListOutputConsumer extends java.lang.Object implements OutputConsumer
This class is an OutputConsumer which saves the output to an ArrayList.
-
-
Constructor Summary
Constructors Constructor Description ArrayListOutputConsumer()
Default Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
clear()
Clear the output.void
consumeOutput(java.io.InputStream pInputStream)
Read command output and save in an internal field.java.util.ArrayList<java.lang.String>
getOutput()
Return array with output-lines.
-
-
-
Method Detail
-
getOutput
public java.util.ArrayList<java.lang.String> getOutput()
Return array with output-lines.
-
clear
public void clear()
Clear the output.
-
consumeOutput
public void consumeOutput(java.io.InputStream pInputStream) throws java.io.IOException
Read command output and save in an internal field.- Specified by:
consumeOutput
in interfaceOutputConsumer
- Throws:
java.io.IOException
- See Also:
OutputConsumer.consumeOutput(java.io.InputStream)
-
-