Package org.brijframework.util.factories
Class JarFileResourceUtil
- java.lang.Object
-
- org.brijframework.util.factories.FileResourceUtils
-
- org.brijframework.util.factories.JarFileResourceUtil
-
public class JarFileResourceUtil extends FileResourceUtils
-
-
Field Summary
-
Fields inherited from class org.brijframework.util.factories.FileResourceUtils
REGEX_PATH_SPRTOR
-
-
Constructor Summary
Constructors Constructor Description JarFileResourceUtil()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static List<Class<?>>getClassList()static StringgetClassPaths(String classPath)static ClassLoadergetContextClassLoader()static List<String>getJarClassNames(String jarPath)static List<String>getJarContent(String jarPath)List the content of the given jarstatic List<File>getJarFiles()static Optional<Class<?>>getSafeClass(String className, ClassLoader classLoader)static voidmain(String[] args)-
Methods inherited from class org.brijframework.util.factories.FileResourceUtils
getFiles
-
-
-
-
Method Detail
-
getContextClassLoader
public static ClassLoader getContextClassLoader()
-
getJarContent
public static List<String> getJarContent(String jarPath) throws IOException
List the content of the given jar- Parameters:
jarPath-- Returns:
- Throws:
IOException
-
getJarClassNames
public static List<String> getJarClassNames(String jarPath) throws IOException
- Throws:
IOException
-
getSafeClass
public static Optional<Class<?>> getSafeClass(String className, ClassLoader classLoader)
-
-