pt.tumba.parser
Class NativeExec

java.lang.Object
  extended by java.lang.Thread
      extended by pt.tumba.parser.NativeExec
All Implemented Interfaces:
java.lang.Runnable

public class NativeExec
extends java.lang.Thread

Description of the Class

Author:
Bruno Martins

Nested Class Summary
 
Nested classes/interfaces inherited from class java.lang.Thread
java.lang.Thread.State, java.lang.Thread.UncaughtExceptionHandler
 
Field Summary
private static NativeExec _theInstance
           
(package private)  java.io.InputStream is
           
(package private)  java.io.PrintWriter outputw
           
(package private)  java.lang.String type
           
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
private NativeExec()
           
(package private) NativeExec(java.io.InputStream is, java.lang.String type)
          Constructor for the NativeExec object
(package private) NativeExec(java.io.InputStream is, java.lang.String type, java.io.PrintWriter outputw)
          Constructor for the NativeExec object
 
Method Summary
static int execute(java.lang.String args)
          Description of the Method
static int execute(java.lang.String a, java.io.PrintWriter out)
          Description of the Method
static NativeExec getInstance()
           
static void main(java.lang.String[] args)
          Description of the Method
 void run()
          Main processing method for the NativeExec object
 
Methods inherited from class java.lang.Thread
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yield
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

_theInstance

private static final NativeExec _theInstance

is

java.io.InputStream is

outputw

java.io.PrintWriter outputw

type

java.lang.String type
Constructor Detail

NativeExec

private NativeExec()

NativeExec

NativeExec(java.io.InputStream is,
           java.lang.String type)
Constructor for the NativeExec object

Parameters:
is - Description of the Parameter
type - Description of the Parameter

NativeExec

NativeExec(java.io.InputStream is,
           java.lang.String type,
           java.io.PrintWriter outputw)
Constructor for the NativeExec object

Parameters:
is - Description of the Parameter
type - Description of the Parameter
outputw - Description of the Parameter
Method Detail

execute

public static int execute(java.lang.String args)
                   throws java.lang.Exception
Description of the Method

Parameters:
args - Description of the Parameter
Returns:
Description of the Return Value
Throws:
java.lang.Exception - Description of the Exception

execute

public static int execute(java.lang.String a,
                          java.io.PrintWriter out)
                   throws java.lang.Exception
Description of the Method

Parameters:
args - Description of the Parameter
out - Description of the Parameter
Returns:
Description of the Return Value
Throws:
java.lang.Exception - Description of the Exception

getInstance

public static NativeExec getInstance()

main

public static void main(java.lang.String[] args)
Description of the Method

Parameters:
args - Description of the Parameter

run

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

Specified by:
run in interface java.lang.Runnable
Overrides:
run in class java.lang.Thread