Example usage for Java org.springframework.util ResourceUtils fields, constructors, methods, implement or subclass
The text is from its open source code.
String | CLASSPATH_URL_PREFIX Pseudo URL prefix for loading from the class path: "classpath:". |
String | FILE_URL_PREFIX URL prefix for loading from the file system: "file:". |
String | JAR_URL_PREFIX URL prefix for loading from a jar file: "jar:". |
String | URL_PROTOCOL_JAR URL protocol for an entry from a jar file: "jar". |
String | URL_PROTOCOL_ZIP URL protocol for an entry from a zip file: "zip". |
String | URL_PROTOCOL_WSJAR URL protocol for an entry from a WebSphere jar file: "wsjar". |
String | URL_PROTOCOL_VFSZIP URL protocol for an entry from a JBoss jar file: "vfszip". |
String | URL_PROTOCOL_VFS URL protocol for a general JBoss VFS resource: "vfs". |
String | JAR_URL_SEPARATOR Separator between JAR URL and file path within the JAR: "!/". |
String | WAR_URL_SEPARATOR Special separator between WAR URL and jar part on Tomcat. |
URL | extractJarFileURL(URL jarUrl) Extract the URL for the actual jar file from the given URL (which may point to a resource in a jar file or to a jar file itself). |
File | getFile(String resourceLocation) Resolve the given resource location to a java.io.File , i.e. |
File | getFile(URL resourceUrl) Resolve the given resource URL to a java.io.File , i.e. |
File | getFile(URI resourceUri) Resolve the given resource URI to a java.io.File , i.e. |
File | getFile(URL resourceUrl, String description) Resolve the given resource URL to a java.io.File , i.e. |
File | getFile(URI resourceUri, String description) Resolve the given resource URI to a java.io.File , i.e. |
URL | getURL(String resourceLocation) Resolve the given resource location to a java.net.URL . |
boolean | isJarURL(URL url) Determine whether the given URL points to a resource in a jar file. |
boolean | isUrl(@Nullable String resourceLocation) Return whether the given resource location is a URL: either a special "classpath" pseudo URL or a standard URL. |
URI | toURI(URL url) Create a URI instance for the given URL, replacing spaces with "%20" URI encoding first. |
URI | toURI(String location) Create a URI instance for the given location String, replacing spaces with "%20" URI encoding first. |
void | useCachesIfNecessary(URLConnection con) Set the URLConnection#setUseCaches "useCaches" flag on the given connection, preferring false but leaving the flag at true for JNLP based resources. |