edu.jhu.tmaj.util
Class FilePathUtils

java.lang.Object
  extended by edu.jhu.tmaj.util.FilePathUtils

public final class FilePathUtils
extends java.lang.Object


Constructor Summary
FilePathUtils()
           
 
Method Summary
static java.io.File getAbsolutePath(java.io.File relativePath, java.io.File rootDirectory)
           
static java.io.File getRelativePath(java.io.File absolutePath, java.io.File rootDirectory)
           
static void verifyFileInRoot(java.io.File absolutePath, java.io.File rootDirectory)
           
static void verifyFileIsAbsolute(java.io.File absolutePath)
           
static void verifyFileName(java.lang.String filename)
           
static void verifyRootDirectory(java.io.File rootDirectory)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FilePathUtils

public FilePathUtils()
Method Detail

getAbsolutePath

public static java.io.File getAbsolutePath(java.io.File relativePath,
                                           java.io.File rootDirectory)

getRelativePath

public static java.io.File getRelativePath(java.io.File absolutePath,
                                           java.io.File rootDirectory)
                                    throws java.io.IOException
Throws:
java.io.IOException

verifyRootDirectory

public static void verifyRootDirectory(java.io.File rootDirectory)

verifyFileIsAbsolute

public static void verifyFileIsAbsolute(java.io.File absolutePath)

verifyFileInRoot

public static void verifyFileInRoot(java.io.File absolutePath,
                                    java.io.File rootDirectory)
                             throws java.io.IOException
Throws:
java.io.IOException

verifyFileName

public static void verifyFileName(java.lang.String filename)