Package org.brijframework.util.factories
Class FileResourceUtils
- java.lang.Object
-
- org.brijframework.util.factories.FileResourceUtils
-
- Direct Known Subclasses:
ClassFileResourceUtil,JarFileResourceUtil
public class FileResourceUtils extends Object
-
-
Field Summary
Fields Modifier and Type Field Description static StringCLASS_EXTstatic StringJAVA_CLASS_PATHstatic StringREGEX_PATH_SPRTOR
-
Constructor Summary
Constructors Constructor Description FileResourceUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static List<File>getFiles(String paths)list files in the given directory and subdirs (with recursion)static List<String>getJarContent(String jarPath)List the content of the given jarstatic voidmain(String[] args)
-
-
-
Field Detail
-
REGEX_PATH_SPRTOR
public static final String REGEX_PATH_SPRTOR
- See Also:
- Constant Field Values
-
CLASS_EXT
public static final String CLASS_EXT
- See Also:
- Constant Field Values
-
JAVA_CLASS_PATH
public static final String JAVA_CLASS_PATH
- See Also:
- Constant Field Values
-
-
Method Detail
-
getFiles
public static List<File> getFiles(String paths)
list files in the given directory and subdirs (with recursion)- Parameters:
paths-- Returns:
-
getJarContent
public static List<String> getJarContent(String jarPath) throws IOException
List the content of the given jar- Parameters:
jarPath-- Returns:
- Throws:
IOException
-
-