public class ClassPathUtil extends Object
Constructor and Description |
---|
ClassPathUtil() |
Modifier and Type | Method and Description |
---|---|
static boolean |
copyFile(InputStream srcStream,
String srcName,
File dstFile) |
static boolean |
copyFile(InputStream srcStream,
String srcName,
OutputStream dstStream,
String dstName) |
static boolean |
copyFile(InputStream srcStream,
String srcName,
String dstPath) |
static Boolean |
extractFileFromClassPath(String src,
String dst)
Extract specified source on class path to file system dst
|
static boolean |
extractFilesFromClassPath(String srcPath,
String dstPath,
boolean overwrite)
Extracts all files in a directory on a classPath (system resource) to
a directory on a file system.
|
static Set<Class> |
listClasses(Package pkg) |
static Set<Class> |
listClasses(String packageName) |
public static Trace LOGGER
public static Boolean extractFileFromClassPath(String src, String dst)
src
- sourcedst
- destinationpublic static boolean copyFile(InputStream srcStream, String srcName, String dstPath)
public static boolean copyFile(InputStream srcStream, String srcName, File dstFile)
public static boolean copyFile(InputStream srcStream, String srcName, OutputStream dstStream, String dstName)
public static boolean extractFilesFromClassPath(String srcPath, String dstPath, boolean overwrite) throws URISyntaxException, IOException
URISyntaxException
IOException
Copyright © 2016 evolveum. All rights reserved.