org.acm.seguin.tools.stub
Class StubGenerator

java.lang.Object
  extended by org.acm.seguin.tools.stub.StubGenerator
All Implemented Interfaces:
java.lang.Runnable

public class StubGenerator
extends java.lang.Object
implements java.lang.Runnable

Generates a stub set from a file or a directory

Author:
Chris Seguin

Constructor Summary
StubGenerator(java.awt.Frame owner, java.lang.String name, java.io.File output)
          Constructor for the StubGenerator object
StubGenerator(java.awt.Frame owner, java.lang.String name, java.lang.String stubKey)
          Constructor for the StubGenerator object
 
Method Summary
static void generateStubs(java.awt.Frame owner, java.lang.String stubname, java.lang.String filename)
          Generate a stub for the current file or directory
static void main(java.lang.String[] args)
          The main program
 void run()
          Main processing method for the StubGenerator object
static void waitForLoaded()
          Waits until it is appropriate to allow the stub files to be loaded
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StubGenerator

public StubGenerator(java.awt.Frame owner,
                     java.lang.String name,
                     java.lang.String stubKey)
Constructor for the StubGenerator object

Parameters:
name - The name of the zip file
stubKey - The key associated with this stub

StubGenerator

public StubGenerator(java.awt.Frame owner,
                     java.lang.String name,
                     java.io.File output)
Constructor for the StubGenerator object

Parameters:
name - The name of the zip file
output - Description of Parameter
Method Detail

run

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

Specified by:
run in interface java.lang.Runnable

waitForLoaded

public static void waitForLoaded()
Waits until it is appropriate to allow the stub files to be loaded


main

public static void main(java.lang.String[] args)
The main program

Parameters:
args - the command line arguments

generateStubs

public static void generateStubs(java.awt.Frame owner,
                                 java.lang.String stubname,
                                 java.lang.String filename)
Generate a stub for the current file or directory

Parameters:
filename - the name of the directory
stubname - the name of the stub