edu.mayo.informatics.indexer.utility
Class Utility
java.lang.Object
edu.mayo.informatics.indexer.utility.Utility
public class Utility
- extends java.lang.Object
Small utility type routines used in the indexer.
- Author:
- Dan Armbrust
Method Summary |
static void |
deleteRecursive(java.io.File file)
|
static java.lang.String |
padInt(int input,
char padChar,
int desiredLength,
boolean prepend)
|
static java.lang.String |
padString(java.lang.String input,
char padChar,
int desiredLength,
boolean prepend)
|
static java.lang.String |
padStringBuffer(java.lang.StringBuffer input,
char padChar,
int desiredLength,
boolean prepend)
|
static void |
removeSubFolders(java.io.File folder)
|
static java.lang.String |
replaceStringsInString(java.lang.StringBuffer input,
java.lang.String searchFor,
java.lang.String replaceWith)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Utility
public Utility()
removeSubFolders
public static void removeSubFolders(java.io.File folder)
deleteRecursive
public static void deleteRecursive(java.io.File file)
replaceStringsInString
public static java.lang.String replaceStringsInString(java.lang.StringBuffer input,
java.lang.String searchFor,
java.lang.String replaceWith)
padStringBuffer
public static java.lang.String padStringBuffer(java.lang.StringBuffer input,
char padChar,
int desiredLength,
boolean prepend)
padString
public static java.lang.String padString(java.lang.String input,
char padChar,
int desiredLength,
boolean prepend)
padInt
public static java.lang.String padInt(int input,
char padChar,
int desiredLength,
boolean prepend)