Class FileModifier

java.lang.Object
  extended by FileModifier

public class FileModifier
extends Object

Class to demonstrate using a program to modify another program

Author:
Barb Ericson

Constructor Summary
FileModifier()
           
 
Method Summary
static void main(String[] args)
           
 void modifyFile(String fileName, String textToChange, String changedText)
          Method to modfiy the first string in a method to be the passed changed text
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FileModifier

public FileModifier()
Method Detail

modifyFile

public void modifyFile(String fileName,
                       String textToChange,
                       String changedText)
Method to modfiy the first string in a method to be the passed changed text

Parameters:
fileName - the file name for the class to modify
textToChange - the text to change
changedText - the new text to use for the text to change

main

public static void main(String[] args)