|
Expresso 5-6 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.jcorporate.expresso.core.utility.ReNameUtil
Utility for renaming classes & dependant objects. Takes a "mapping" file that gives the "from/to" pairs, and a directory to start looking for files in - then all files in that directory are processed
| Constructor Summary | |
ReNameUtil()
Constructor |
|
| Method Summary | |
static Vector |
getDir(String dirName)
Return a vector of the file/dir names in any give directory |
static String |
getExtension(String fileName)
Get the file extension (after the ".") |
static String |
getPath(String fileName)
Get the path of a file name |
static void |
main(String[] args)
|
static void |
processDB(String configDir,
String db)
|
static void |
processDirs(String fileName)
|
static void |
processFile(String sourceFile)
Process a single file |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public ReNameUtil()
| Method Detail |
public static void processDirs(String fileName)
throws IOException
fileName -
IOException
public static void processFile(String sourceFile)
throws IOException
sourceFile - Source file pathname
IOException - If the copy fails due to an I/O error
public static Vector getDir(String dirName)
throws IOException
dirName -
IOException - If the given name is not a directory or if
an I/O error occurs when trying to read the file list
public static String getExtension(String fileName)
throws IOException
fileName - Original full file name
IOException - If unable to allocate the file to get the extensionpublic static String getPath(String fileName)
fileName - Original pathname
public static void processDB(String configDir,
String db)
throws IOException,
DBException,
ConfigurationException
configDir - db -
IOException
DBException
ConfigurationExceptionpublic static void main(String[] args)
args -
|
Expresso 5-6 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||