|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.bankframe.admin.tools.FindFileInClassPath
public class FindFileInClassPath
Determine the directory/jar a class is located in ClassPath
| Field Summary | |
|---|---|
static String |
CLASS_PATH_KEY
|
static String |
JAR_SUFFIX
|
static String |
PATH_SEPARATOR_KEY
|
static String |
ZIP_SUFFIX
|
| Method Summary | |
|---|---|
static String |
findFileInClassPath(String fileName)
This method gets the parent folder where the specified file name is located |
static String |
findFileInPath(String pathToSearch,
String pathSeparator,
String fileName)
This method searches the path for the filename |
static boolean |
isFileInFolder(String folderPath,
String filePath)
This method searches the folder for the filename |
static boolean |
isFileInJar(String jarPath,
String filePath)
This method checks the Jar for the File |
static boolean |
isFileInPath(String path,
String file)
This method checks the Jar for the File |
static void |
main(String[] args)
|
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String CLASS_PATH_KEY
public static final String PATH_SEPARATOR_KEY
public static final String JAR_SUFFIX
public static final String ZIP_SUFFIX
| Method Detail |
|---|
public static String findFileInClassPath(String fileName)
fileName - String the fileName searched for.
public static String findFileInPath(String pathToSearch,
String pathSeparator,
String fileName)
pathToSearch - String the pathpathSeparator - String the path separator keyfileName - String the file name searched for
public static boolean isFileInFolder(String folderPath,
String filePath)
folderPath - String the folderPath searchedfilePath - String
public static boolean isFileInJar(String jarPath,
String filePath)
jarPath - String the pathfilePath - String the file name searched for
public static boolean isFileInPath(String path,
String file)
path - String the pathfile - String the file name searched for
public static void main(String[] args)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||