de.uni_paderborn.fujaba.basic
Class ProcessOutputViewer.StreamPoller

java.lang.Object
  extended byde.uni_paderborn.fujaba.basic.ProcessOutputViewer.StreamPoller
All Implemented Interfaces:
java.lang.Runnable
Enclosing class:
ProcessOutputViewer

class ProcessOutputViewer.StreamPoller
extends java.lang.Object
implements java.lang.Runnable

This class polls an input stream and appends the input to the text in a text area. Be careful, if you create a thread out of this class, remind that you have to stop the thread explicitly, because the run method is implemented as a never ending loop.

Version:
$Revision: 1.65 $
Author:
$Author: lowende $

Field Summary
private  java.io.InputStreamReader in
          No comment provided by developer, please add a comment to improve documentation.
private  javax.swing.JTextArea out
          No comment provided by developer, please add a comment to improve documentation.
private  boolean stopped
          No comment provided by developer, please add a comment to improve documentation.
 
Constructor Summary
ProcessOutputViewer.StreamPoller(java.io.InputStream in, javax.swing.JTextArea out)
          Constructor for class StreamPoller
 
Method Summary
 void run()
          Main processing method for the StreamPoller object
 void stop()
          No comment provided by developer, please add a comment to improve documentation.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

in

private java.io.InputStreamReader in
No comment provided by developer, please add a comment to improve documentation.


out

private javax.swing.JTextArea out
No comment provided by developer, please add a comment to improve documentation.


stopped

private boolean stopped
No comment provided by developer, please add a comment to improve documentation.

Constructor Detail

ProcessOutputViewer.StreamPoller

public ProcessOutputViewer.StreamPoller(java.io.InputStream in,
                                        javax.swing.JTextArea out)
Constructor for class StreamPoller

Parameters:
in - No description provided
out - No description provided
Method Detail

stop

public void stop()
No comment provided by developer, please add a comment to improve documentation.


run

public void run()
Main processing method for the StreamPoller object

Specified by:
run in interface java.lang.Runnable