cluster5.shared.utils
Class ClassFileFinder

java.lang.Object
  extended by cluster5.shared.utils.ClassFileFinder

public class ClassFileFinder
extends java.lang.Object


Constructor Summary
ClassFileFinder()
           
 
Method Summary
static java.lang.String classToFilePath(java.lang.String canonicalClassName)
          For 'cz.ibisek.MyClass' returns 'cz/ibisek/MyClass.class'.
static java.lang.String classToPackagePath(java.lang.String canonicalClassName)
          For 'cz.ibisek.MyClass' returns 'cz/ibisek/'.
static java.lang.String findFileForClassName(java.lang.String canonicalClassName)
          Searches in which file is stored the specified class.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ClassFileFinder

public ClassFileFinder()
Method Detail

classToFilePath

public static java.lang.String classToFilePath(java.lang.String canonicalClassName)
For 'cz.ibisek.MyClass' returns 'cz/ibisek/MyClass.class'.

Parameters:
canonicalClassName -
Returns:
class package and name converted to file path

classToPackagePath

public static java.lang.String classToPackagePath(java.lang.String canonicalClassName)
For 'cz.ibisek.MyClass' returns 'cz/ibisek/'.

Parameters:
canonicalClassName -
Returns:
class package converted to folders

findFileForClassName

public static java.lang.String findFileForClassName(java.lang.String canonicalClassName)
Searches in which file is stored the specified class.

Parameters:
canonicalClassName -
Returns:
full path to class JAR file in which is specified class or null if the path was not found