The im4java Library, Version 1.4.0

org.im4java.process
Class ArrayListConsumer

java.lang.Object
  extended by org.im4java.process.ArrayListConsumer
Direct Known Subclasses:
ArrayListErrorConsumer, ArrayListOutputConsumer

public abstract class ArrayListConsumer
extends java.lang.Object

Base class for ArrayListOutputConsumer and ArrayListErrorConsumer with common methods.

Since:
1.4.0
Version:
$Revision: 1.1 $
Author:
$Author: bablokb $
See Also:
ArrayListOutputConsumer, ArrayListErrorConsumer

Constructor Summary
ArrayListConsumer()
          Default Constructor.
ArrayListConsumer(java.lang.String pCharset)
          Constructor taking a charset-name as argument.
 
Method Summary
 void clear()
          Clear the output.
protected  void consume(java.io.InputStream pInputStream)
          Read from InputStream and save in an internal field.
 java.util.ArrayList<java.lang.String> getOutput()
          Return array with output-lines.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ArrayListConsumer

public ArrayListConsumer()
Default Constructor.

Since:
1.4.0

ArrayListConsumer

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

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

getOutput

public java.util.ArrayList<java.lang.String> getOutput()
Return array with output-lines.

Since:
1.4.0

clear

public void clear()
Clear the output.

Since:
1.4.0

consume

protected void consume(java.io.InputStream pInputStream)
                throws java.io.IOException
Read from InputStream and save in an internal field.

Parameters:
pInputStream - source InputStream
Throws:
java.io.IOException
Since:
1.4.0

The im4java Library, Version 1.4.0

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