com.bankframe.admin.tools
Class FindFileInClassPath

java.lang.Object
  extended bycom.bankframe.admin.tools.FindFileInClassPath

public class FindFileInClassPath
extends java.lang.Object

Determine the directory/jar a class is located in ClassPath

Author:
ETU

Field Summary
static java.lang.String CLASS_PATH_KEY
           
static java.lang.String JAR_SUFFIX
           
static java.lang.String PATH_SEPARATOR_KEY
           
static java.lang.String ZIP_SUFFIX
           
 
Method Summary
static java.lang.String findFileInClassPath(java.lang.String fileName)
          This method gets the parent folder where the specified file name is located
static java.lang.String findFileInPath(java.lang.String pathToSearch, java.lang.String pathSeparator, java.lang.String fileName)
          This method searches the path for the filename
static boolean isFileInFolder(java.lang.String folderPath, java.lang.String filePath)
          This method searches the folder for the filename
static boolean isFileInJar(java.lang.String jarPath, java.lang.String filePath)
          This method checks the Jar for the File
static boolean isFileInPath(java.lang.String path, java.lang.String file)
          This method checks the Jar for the File
static void main(java.lang.String[] args)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CLASS_PATH_KEY

public static final java.lang.String CLASS_PATH_KEY
See Also:
Constant Field Values

PATH_SEPARATOR_KEY

public static final java.lang.String PATH_SEPARATOR_KEY
See Also:
Constant Field Values

JAR_SUFFIX

public static final java.lang.String JAR_SUFFIX
See Also:
Constant Field Values

ZIP_SUFFIX

public static final java.lang.String ZIP_SUFFIX
See Also:
Constant Field Values
Method Detail

findFileInClassPath

public static java.lang.String findFileInClassPath(java.lang.String fileName)
This method gets the parent folder where the specified file name is located

Returns:
file path

findFileInPath

public static java.lang.String findFileInPath(java.lang.String pathToSearch,
                                              java.lang.String pathSeparator,
                                              java.lang.String fileName)
This method searches the path for the filename

Returns:
file path or null

isFileInFolder

public static boolean isFileInFolder(java.lang.String folderPath,
                                     java.lang.String filePath)
This method searches the folder for the filename

Returns:
file path

isFileInJar

public static boolean isFileInJar(java.lang.String jarPath,
                                  java.lang.String filePath)
This method checks the Jar for the File

Returns:
file path or null

isFileInPath

public static boolean isFileInPath(java.lang.String path,
                                   java.lang.String file)
This method checks the Jar for the File

Returns:
file path or null

main

public static void main(java.lang.String[] args)


Copyright © 2004 Siebel Systems, Inc. All rights reserved.