|
||||||||||
| 上一个类 下一个类 | 框架 无框架 | |||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | |||||||||
java.lang.Objectorg.opoo.util.ClassPathUtils
public abstract class ClassPathUtils
| 字段摘要 | |
|---|---|
static String |
CLASSPATH_URL_PREFIX
Pseudo URL prefix for loading from the class path: "classpath:" |
static String |
FILE_URL_PREFIX
URL prefix for loading from the file system: "file:" |
static String |
JAR_URL_SEPARATOR
Separator between JAR URL and file path within the JAR |
static String |
URL_PROTOCOL_CODE_SOURCE
URL protocol for an entry from an OC4J jar file: "code-source" |
static String |
URL_PROTOCOL_FILE
URL protocol for a file in the file system: "file" |
static String |
URL_PROTOCOL_JAR
URL protocol for an entry from a jar file: "jar" |
static String |
URL_PROTOCOL_VFS
URL protocol for a JBoss VFS resource: "vfs" |
static String |
URL_PROTOCOL_VFSZIP
URL protocol for an entry from a JBoss jar file: "vfszip" |
static String |
URL_PROTOCOL_WSJAR
URL protocol for an entry from a WebSphere jar file: "wsjar" |
static String |
URL_PROTOCOL_ZIP
URL protocol for an entry from a zip file: "zip" |
| 方法摘要 | |
|---|---|
protected static void |
copyFilePath(URL sourceDirectoryURL,
File destination,
boolean overwrite)
|
protected static void |
copyJarPath(URL jarFileURL,
String sourcePath,
File destination,
boolean overwrite)
|
static void |
copyPath(ClassLoader loader,
String classPathSource,
File destination)
|
static void |
copyPath(ClassLoader loader,
String classPathSource,
File destination,
boolean overwrite)
|
static URL |
extractJarFileURL(URL jarUrl)
|
static boolean |
isJarURL(URL url)
|
| 从类 java.lang.Object 继承的方法 |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| 字段详细信息 |
|---|
public static final String CLASSPATH_URL_PREFIX
public static final String FILE_URL_PREFIX
public static final String URL_PROTOCOL_FILE
public static final String URL_PROTOCOL_JAR
public static final String URL_PROTOCOL_ZIP
public static final String URL_PROTOCOL_VFSZIP
public static final String URL_PROTOCOL_VFS
public static final String URL_PROTOCOL_WSJAR
public static final String URL_PROTOCOL_CODE_SOURCE
public static final String JAR_URL_SEPARATOR
| 方法详细信息 |
|---|
public static void copyPath(ClassLoader loader,
String classPathSource,
File destination)
throws Exception
loader - classPathSource - destination -
Exception
public static void copyPath(ClassLoader loader,
String classPathSource,
File destination,
boolean overwrite)
throws Exception
loader - classPathSource - destination - overwrite -
Exception
protected static void copyJarPath(URL jarFileURL,
String sourcePath,
File destination,
boolean overwrite)
throws Exception
jarFileURL - sourcePath - destination - overwrite -
Exception
protected static void copyFilePath(URL sourceDirectoryURL,
File destination,
boolean overwrite)
throws Exception
sourceDirectoryURL - destination - overwrite -
Exceptionpublic static boolean isJarURL(URL url)
public static URL extractJarFileURL(URL jarUrl)
throws MalformedURLException
MalformedURLException
|
||||||||||
| 上一个类 下一个类 | 框架 无框架 | |||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | |||||||||