public class URLs extends Object
| 限定符和类型 | 字段和说明 |
|---|---|
static String |
JAR_FILE_SUFFIX
File extension for a regular jar file: ".jar".
|
static String |
JAR_URL_SEPARATOR
Separator between JAR URL and file path within the JAR: "!
|
static String |
URL_PREFIX_FILE |
static String |
URL_PREFIX_FTP |
static String |
URL_PREFIX_HTTP |
static String |
URL_PREFIX_HTTPS |
static String |
URL_PREFIX_JAR |
static String |
URL_PREFIX_JAR_FILE |
static String |
URL_PREFIX_MAIL |
static String |
URL_PREFIX_SMTP |
static String |
URL_PROTOCOL_FILE |
static String |
URL_PROTOCOL_JAR |
static String |
URL_PROTOCOL_VFS
URL protocol for a general JBoss VFS resource: "vfs".
|
static String |
URL_PROTOCOL_VFSFILE
URL protocol for a JBoss file system resource: "vfsfile".
|
static String |
URL_PROTOCOL_VFSZIP
URL protocol for an entry from a JBoss jar file: "vfszip".
|
static String |
URL_PROTOCOL_WAR |
static String |
URL_PROTOCOL_WSJAR
URL protocol for an entry from a WebSphere jar file: "wsjar".
|
static String |
URL_PROTOCOL_ZIP |
static String |
WAR_URL_SEPARATOR
Special separator between WAR URL and jar part on Tomcat.
|
| 构造器和说明 |
|---|
URLs() |
| 限定符和类型 | 方法和说明 |
|---|---|
static boolean |
exists(URL url) |
static long |
getContentLength(URL url) |
static File |
getFile(URL url) |
static InputStream |
getInputStream(URL url) |
static String |
getUrlPrefix(String protocol) |
static boolean |
isFileURL(URL url) |
static boolean |
isJarURL(URL url) |
static boolean |
isMultipleLevelJarURL(URL url) |
static URL |
newURL(String url) |
static URL |
toURL(URI uri) |
public static final String JAR_URL_SEPARATOR
public static final String URL_PROTOCOL_WSJAR
public static final String URL_PROTOCOL_VFSZIP
public static final String URL_PROTOCOL_VFSFILE
public static final String URL_PROTOCOL_VFS
public static final String JAR_FILE_SUFFIX
public static boolean isFileURL(URL url)
public static boolean isJarURL(URL url)
public static boolean isMultipleLevelJarURL(URL url)
public static boolean exists(URL url)
public static long getContentLength(URL url)
public static InputStream getInputStream(URL url)
Copyright © 2022. All rights reserved.