public abstract class ClassPathUtils
extends java.lang.Object
| 限定符和类型 | 字段和说明 |
|---|---|
static java.lang.String |
CLASSPATH_URL_PREFIX
Pseudo URL prefix for loading from the class path: "classpath:"
|
static java.lang.String |
FILE_URL_PREFIX
URL prefix for loading from the file system: "file:"
|
static java.lang.String |
JAR_URL_SEPARATOR
Separator between JAR URL and file path within the JAR
|
static java.lang.String |
URL_PROTOCOL_CODE_SOURCE
URL protocol for an entry from an OC4J jar file: "code-source"
|
static java.lang.String |
URL_PROTOCOL_FILE
URL protocol for a file in the file system: "file"
|
static java.lang.String |
URL_PROTOCOL_JAR
URL protocol for an entry from a jar file: "jar"
|
static java.lang.String |
URL_PROTOCOL_VFS
URL protocol for a JBoss VFS resource: "vfs"
|
static java.lang.String |
URL_PROTOCOL_VFSZIP
URL protocol for an entry from a JBoss jar file: "vfszip"
|
static java.lang.String |
URL_PROTOCOL_WSJAR
URL protocol for an entry from a WebSphere jar file: "wsjar"
|
static java.lang.String |
URL_PROTOCOL_ZIP
URL protocol for an entry from a zip file: "zip"
|
| 限定符和类型 | 方法和说明 |
|---|---|
protected static void |
copyFilePath(java.net.URL sourceDirectoryURL,
java.io.File destination,
boolean overwrite) |
protected static void |
copyJarPath(java.net.URL jarFileURL,
java.lang.String sourcePath,
java.io.File destination,
boolean overwrite) |
static void |
copyPath(java.lang.ClassLoader loader,
java.lang.String classPathSource,
java.io.File destination) |
static void |
copyPath(java.lang.ClassLoader loader,
java.lang.String classPathSource,
java.io.File destination,
boolean overwrite) |
static java.net.URL |
extractJarFileURL(java.net.URL jarUrl) |
static boolean |
isJarURL(java.net.URL url) |
public static final java.lang.String CLASSPATH_URL_PREFIX
public static final java.lang.String FILE_URL_PREFIX
public static final java.lang.String URL_PROTOCOL_FILE
public static final java.lang.String URL_PROTOCOL_JAR
public static final java.lang.String URL_PROTOCOL_ZIP
public static final java.lang.String URL_PROTOCOL_VFSZIP
public static final java.lang.String URL_PROTOCOL_VFS
public static final java.lang.String URL_PROTOCOL_WSJAR
public static final java.lang.String URL_PROTOCOL_CODE_SOURCE
public static final java.lang.String JAR_URL_SEPARATOR
public static void copyPath(java.lang.ClassLoader loader,
java.lang.String classPathSource,
java.io.File destination)
throws java.lang.Exception
loader - classPathSource - destination - java.lang.Exceptionpublic static void copyPath(java.lang.ClassLoader loader,
java.lang.String classPathSource,
java.io.File destination,
boolean overwrite)
throws java.lang.Exception
loader - classPathSource - destination - overwrite - java.lang.Exceptionprotected static void copyJarPath(java.net.URL jarFileURL,
java.lang.String sourcePath,
java.io.File destination,
boolean overwrite)
throws java.lang.Exception
jarFileURL - sourcePath - destination - overwrite - java.lang.Exceptionprotected static void copyFilePath(java.net.URL sourceDirectoryURL,
java.io.File destination,
boolean overwrite)
throws java.lang.Exception
sourceDirectoryURL - destination - overwrite - java.lang.Exceptionpublic static boolean isJarURL(java.net.URL url)
public static java.net.URL extractJarFileURL(java.net.URL jarUrl)
throws java.net.MalformedURLException
java.net.MalformedURLExceptionCopyright © 2014-2015 Opoo.org. All Rights Reserved.