Example usage for Java org.springframework.core.io UrlResource fields, constructors, methods, implement or subclass
The text is from its open source code.
UrlResource(URI uri) Create a new UrlResource based on the given URI object. | |
UrlResource(URL url) Create a new UrlResource based on the given URL object. | |
UrlResource(String path) Create a new UrlResource based on a URL path. | |
UrlResource(String protocol, String location) Create a new UrlResource based on a URI specification. |
boolean | exists() |
File | getFile() This implementation returns a File reference for the underlying URL/URI, provided that it refers to a file in the file system. |
String | getFilename() This implementation returns the name of the file that this URL refers to. |
InputStream | getInputStream() This implementation opens an InputStream for the given URL. |
URL | getURL() This implementation returns the underlying URL reference. |