net.objectlab.qalab.util
Class FilenameUtil

java.lang.Object
  extended by net.objectlab.qalab.util.FilenameUtil

public final class FilenameUtil
extends java.lang.Object

Utility class for file name manipulations.

 

Method Summary
static java.lang.String trimFilename(java.lang.String aFilename, java.lang.String aSrcDir)
          Trims the supplied filename by forcing it to be a unix path and choping off everything below the src directory.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

trimFilename

public static java.lang.String trimFilename(java.lang.String aFilename,
                                            java.lang.String aSrcDir)
Trims the supplied filename by forcing it to be a unix path and choping off everything below the src directory.

Parameters:
aFilename - The original absolute filename.
aSrcDir - the path to the src folder.
Returns:
a trimmed file name suitable for display.