com.croftsoft.apps.text
Class ReplaceText

java.lang.Object
  extended by com.croftsoft.apps.text.ReplaceText

public class ReplaceText
extends Object

Replaces text in a file.

Command line:
java com.croftsoft.apps.text.ReplaceText fileName oldString newString

Version:
1999-08-15
Author:
David W. Croft

Constructor Summary
ReplaceText()
           
 
Method Summary
static void main(String[] args)
           
static void replaceText(String fileName, String oldString, String newString)
          Calls FileLib.replaceStrings(file, oldString, newString).
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ReplaceText

public ReplaceText()
Method Detail

main

public static void main(String[] args)
                 throws FileNotFoundException,
                        IOException
Throws:
FileNotFoundException
IOException

replaceText

public static void replaceText(String fileName,
                               String oldString,
                               String newString)
                        throws FileNotFoundException,
                               IOException
Calls FileLib.replaceStrings(file, oldString, newString).

Throws:
FileNotFoundException
IOException

CroftSoft Javadoc

CroftSoft Apps Javadoc (2008-09-28 21:15:07)