Class besiex.FrIJDE.AbstractClasses.FrIJDEProcessRunnerForTool
All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class besiex.FrIJDE.AbstractClasses.FrIJDEProcessRunnerForTool

java.lang.Object
   |
   +----java.lang.Thread
           |
           +----besiex.FrIJDE.AbstractClasses.FrIJDEProcessRunnerForTool

public class FrIJDEProcessRunnerForTool
extends Thread
Some FrIJDETools need to run executable code and capture their output; these FrIJDETools can act as interfaces for previously developed code such as Sun's Javac, Java, etc. This class makes it easier for these kinds of FrIJDETools to be developed.

Version:
1.00, 24 February 1996

Changes from last version

Author:
Benjamin "Quincy" Cabell V, Besiex Software

Variable Index

 o parent
Parent FrIJDETool.
 o runningProcess
The handle of the process.

Constructor Index

 o FrIJDEProcessRunnerForTool(FrIJDETool, String)
The constructor used to create the process to run.

Method Index

 o ProcessEnded()
When the process is ended, this method is called.
 o ProcessLineOutputHandler(String)
This method is called every time the process this class runs returns a line of output.
 o ProcessStarted()
When the process is started, this method is called.
 o run()
This method is executed by the constructor.

Variables

 o parent
  public FrIJDETool parent
Parent FrIJDETool.
 o runningProcess
  public Process runningProcess
The handle of the process.

Constructors

 o FrIJDEProcessRunnerForTool
  public FrIJDEProcessRunnerForTool(FrIJDETool theParent,
                                    String theCommandLine)
The constructor used to create the process to run.

Parameters:
theParent - The FrIJDETool which instantiates this class.
theCommandLine - The String to use to execute the process.

Methods

 o ProcessLineOutputHandler
  public abstract String ProcessLineOutputHandler(String theProcessOutputAsString)
This method is called every time the process this class runs returns a line of output. The response to that output is returned by this method and passed into the process as input.

Returns:
The String to pass as input to the process.
 o ProcessStarted
  public abstract void ProcessStarted()
When the process is started, this method is called.
 o ProcessEnded
  public abstract void ProcessEnded()
When the process is ended, this method is called.
 o run
  public void run()
This method is executed by the constructor.
Overrides:
run in class Thread

All Packages  Class Hierarchy  This Package  Previous  Next  Index