org.opoo.util
类 ClassPathUtils

java.lang.Object
  继承者 org.opoo.util.ClassPathUtils

public abstract class ClassPathUtils
extends Object

作者:
Alex Lin

字段摘要
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
 

字段详细信息

CLASSPATH_URL_PREFIX

public static final String CLASSPATH_URL_PREFIX
Pseudo URL prefix for loading from the class path: "classpath:"

另请参见:
常量字段值

FILE_URL_PREFIX

public static final String FILE_URL_PREFIX
URL prefix for loading from the file system: "file:"

另请参见:
常量字段值

URL_PROTOCOL_FILE

public static final String URL_PROTOCOL_FILE
URL protocol for a file in the file system: "file"

另请参见:
常量字段值

URL_PROTOCOL_JAR

public static final String URL_PROTOCOL_JAR
URL protocol for an entry from a jar file: "jar"

另请参见:
常量字段值

URL_PROTOCOL_ZIP

public static final String URL_PROTOCOL_ZIP
URL protocol for an entry from a zip file: "zip"

另请参见:
常量字段值

URL_PROTOCOL_VFSZIP

public static final String URL_PROTOCOL_VFSZIP
URL protocol for an entry from a JBoss jar file: "vfszip"

另请参见:
常量字段值

URL_PROTOCOL_VFS

public static final String URL_PROTOCOL_VFS
URL protocol for a JBoss VFS resource: "vfs"

另请参见:
常量字段值

URL_PROTOCOL_WSJAR

public static final String URL_PROTOCOL_WSJAR
URL protocol for an entry from a WebSphere jar file: "wsjar"

另请参见:
常量字段值

URL_PROTOCOL_CODE_SOURCE

public static final String URL_PROTOCOL_CODE_SOURCE
URL protocol for an entry from an OC4J jar file: "code-source"

另请参见:
常量字段值

JAR_URL_SEPARATOR

public static final String JAR_URL_SEPARATOR
Separator between JAR URL and file path within the JAR

另请参见:
常量字段值
方法详细信息

copyPath

public static void copyPath(ClassLoader loader,
                            String classPathSource,
                            File destination)
                     throws Exception
参数:
loader -
classPathSource -
destination -
抛出:
Exception

copyPath

public static void copyPath(ClassLoader loader,
                            String classPathSource,
                            File destination,
                            boolean overwrite)
                     throws Exception
参数:
loader -
classPathSource -
destination -
overwrite -
抛出:
Exception

copyJarPath

protected static void copyJarPath(URL jarFileURL,
                                  String sourcePath,
                                  File destination,
                                  boolean overwrite)
                           throws Exception
参数:
jarFileURL -
sourcePath -
destination -
overwrite -
抛出:
Exception

copyFilePath

protected static void copyFilePath(URL sourceDirectoryURL,
                                   File destination,
                                   boolean overwrite)
                            throws Exception
参数:
sourceDirectoryURL -
destination -
overwrite -
抛出:
Exception

isJarURL

public static boolean isJarURL(URL url)

extractJarFileURL

public static URL extractJarFileURL(URL jarUrl)
                             throws MalformedURLException
抛出:
MalformedURLException


Copyright © 2013 Opoo.org. All Rights Reserved.