edu.jhu.tmaj.util
Class FilePathUtils
java.lang.Object
edu.jhu.tmaj.util.FilePathUtils
public final class FilePathUtils
- extends java.lang.Object
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FilePathUtils
public FilePathUtils()
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)