edu.mayo.informatics.indexer.utility
Class Utility

java.lang.Object
  extended by edu.mayo.informatics.indexer.utility.Utility

public class Utility
extends java.lang.Object

Small utility type routines used in the indexer.

Author:
Dan Armbrust

Constructor Summary
Utility()
           
 
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
 

Constructor Detail

Utility

public Utility()
Method Detail

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)

Copyright: (c) 2004-2006 Mayo Foundation for Medical Education and Research (MFMER). All rights reserved. MAYO, MAYO CLINIC, and the triple-shield Mayo logo are trademarks and service marks of MFMER.