edu.iris.dmc.pdcc.gui
Class PipeReader

java.lang.Object
  extended byedu.iris.dmc.pdcc.gui.PipeReader

public class PipeReader
extends java.lang.Object

Provides stderr/stdout popup display.

Version:
5/19/2006
Author:
Chris Laughbon, IRIS DMC
modified by Robert Casey, IRIS DMC

Field Summary
static int STDERR
           
static int STDOUT
           
 
Constructor Summary
PipeReader(javax.swing.JFrame parent, java.lang.String label)
          Get new instance of PipeReader with indicated parent frame and label.
 
Method Summary
 boolean isShowing()
           
static void main(java.lang.String[] args)
          Default invocation method, launching the dialog to intercept STDERR messages.
 void setOut(int which)
          Set whether to listen to STDERR streams or STDOUT streams.
 void setVisible(boolean isVisible)
          Trigger visibility of the popup dialog.
 void start()
          Starts thread to intercept output stream.
 void stop()
          Stops thread from intercepting output stream.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

STDERR

public static final int STDERR
See Also:
Constant Field Values

STDOUT

public static final int STDOUT
See Also:
Constant Field Values
Constructor Detail

PipeReader

public PipeReader(javax.swing.JFrame parent,
                  java.lang.String label)
Get new instance of PipeReader with indicated parent frame and label. Creates a popup dialog showing stderr/stdout output messages.

Parameters:
parent - parent JFrame to base the popup dialog from
label - title to display at the top of the popup dialog
Method Detail

setVisible

public void setVisible(boolean isVisible)
Trigger visibility of the popup dialog.

Parameters:
isVisible - true to trigger visibility

isShowing

public boolean isShowing()
Returns:
true if the popup is current set to visible

setOut

public void setOut(int which)
Set whether to listen to STDERR streams or STDOUT streams.

Parameters:
which - integer constant for STDOUT or STDERR

start

public void start()
Starts thread to intercept output stream.


stop

public void stop()
Stops thread from intercepting output stream.


main

public static void main(java.lang.String[] args)
Default invocation method, launching the dialog to intercept STDERR messages.

Parameters:
args - not used


brought to you by Incorporated Research Institutions for Seismology
June 29 2006