|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectclasspathhelper.StringUtils
Utility class containing many of the common string related routines
needed by a classloader. Results from these methods are often
maintained in a SessionCache
to avoid recomputing them.
The algorithms are broken out in this utility (as opposed to being included in the cache) so as to allow them to be called when no cache exists.
Constructor Summary | |
StringUtils()
|
Method Summary | |
static java.lang.String |
classToPath(java.lang.String classname)
Converts a class name to its likely path (including the .class extendsion). |
static java.lang.String |
convertPathToPackage(java.lang.String pathName)
Converts a path to a package name. |
static java.lang.String[] |
determineClassNames(java.lang.String pathName)
Converts a path to both its basic class name and its fully qualified class name. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public StringUtils()
Method Detail |
public static java.lang.String convertPathToPackage(java.lang.String pathName)
pathName
- The path (no class or content name included).
public static java.lang.String[] determineClassNames(java.lang.String pathName)
pathName
- the path name.
public static java.lang.String classToPath(java.lang.String classname)
classname
- The class name.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |