The im4java Library, Version 1.4.0

org.im4java.process
Class ArrayListOutputConsumer

java.lang.Object
  extended by org.im4java.process.ArrayListConsumer
      extended by org.im4java.process.ArrayListOutputConsumer
All Implemented Interfaces:
OutputConsumer

public class ArrayListOutputConsumer
extends ArrayListConsumer
implements OutputConsumer

This class is an OutputConsumer which saves the output to an ArrayList.

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

Constructor Summary
ArrayListOutputConsumer()
          Default Constructor.
ArrayListOutputConsumer(java.lang.String pCharset)
          Constructor taking a charset-name as argument.
 
Method Summary
 void consumeOutput(java.io.InputStream pInputStream)
          Read command output and save in an internal field.
 
Methods inherited from class org.im4java.process.ArrayListConsumer
clear, consume, getOutput
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ArrayListOutputConsumer

public ArrayListOutputConsumer()
Default Constructor.


ArrayListOutputConsumer

public ArrayListOutputConsumer(java.lang.String pCharset)
Constructor taking a charset-name as argument.

Parameters:
pCharset - charset-name for internal InputStreamReader
Method Detail

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 interface OutputConsumer
Throws:
java.io.IOException
See Also:
OutputConsumer.consumeOutput(java.io.InputStream)

The im4java Library, Version 1.4.0

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