org.apache.lenya.util
Class SED

java.lang.Object
  extended by org.apache.lenya.util.SED

public class SED
extends java.lang.Object

Similar to the UNIX sed


Constructor Summary
SED()
           
 
Method Summary
static void main(java.lang.String[] args)
          Command Line Interface
static void replaceAll(java.io.File file, java.lang.String substitute, java.lang.String substituteReplacement)
          Substitute prefix, e.g. ".
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SED

public SED()
Method Detail

main

public static void main(java.lang.String[] args)
Command Line Interface

Parameters:
args - DOCUMENT ME!

replaceAll

public static void replaceAll(java.io.File file,
                              java.lang.String substitute,
                              java.lang.String substituteReplacement)
                       throws java.io.IOException
Substitute prefix, e.g. ".*world.*" by "universe"

Parameters:
file - File which sed shall be applied
prefixSubstitute - Prefix which shall be replaced
substituteReplacement - Prefix which is going to replace the original
Throws:
java.io.IOException - DOCUMENT ME!


Copyright © 1999-2005 Apache Software Foundation. All Rights Reserved.