| ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Presents utilites to retrieve some information for specified Class.
For example : class name, package name, class path an so on.
| Field Summary | |
private final static String | FILE |
private final static String | JAR |
private final static String | JAR_DELIMITER |
private final static String | PROTOCOL_DELIMITER |
private final static String | SYSTEMRESOURCE |
private final static String | SYSTEMRESOURCE_DELIMITER |
private final static String | SYSTEMRESOURCE_FILE_MARKER |
private final static String | SYSTEMRESOURCE_ZIP_MARKER |
| Method Summary | |
private static File | extractRoot(URL resourceURL, String resourcePath)Attempts to extract classpath entry part from passed URL. |
private static String | getAbsoluteResourcePath(Class context, String resourcePath) |
static String | getModuleHomeDirectory(Class moduleClass) |
static String | getPackageName(Class clazz)Detects package name without class name. |
static File | getResource(Class context, String path)Combines convertToFile with Class.findResource() and contains
workarounds to some known findResource() bugs |
static File | getResourceRoot(Class context, String path)Attempts to detect classpath entry which contains given resource |
static String | getShortName(Class clazz)Detects class name without package specification (short name). |
| Field Detail |
private final static String FILE
private final static String JAR
private final static String JAR_DELIMITER
private final static String PROTOCOL_DELIMITER
private final static String SYSTEMRESOURCE
private final static String SYSTEMRESOURCE_DELIMITER
private final static String SYSTEMRESOURCE_FILE_MARKER
private final static String SYSTEMRESOURCE_ZIP_MARKER
| Method Detail |
private static File extractRoot(URL resourceURL, String resourcePath)
private static String getAbsoluteResourcePath(Class context, String resourcePath)
public static String getModuleHomeDirectory(Class moduleClass)
public static String getPackageName(Class clazz)
String.public static File getResource(Class context, String path)
convertToFile with Class.findResource() and contains
findResource() bugspublic static File getResourceRoot(Class context, String path)
public static String getShortName(Class clazz)
| Association Links |
to Class java.lang.String
to Class java.lang.String
to Class java.lang.String
to Class java.lang.String
to Class java.lang.String
to Class java.lang.String
to Class java.lang.String
| ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||