|
||||||||||
| 上一个类 下一个类 | 框架 无框架 | |||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | |||||||||
java.lang.Objectorg.opoo.util.ClassPathUtils
public abstract class ClassPathUtils
| 字段摘要 | |
|---|---|
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)
|
| 从类 java.lang.Object 继承的方法 |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| 字段详细信息 |
|---|
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.Exception
public 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.Exception
protected 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.Exception
protected 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.MalformedURLException
|
||||||||||
| 上一个类 下一个类 | 框架 无框架 | |||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | |||||||||