Example usage for Java org.springframework.core.io ClassPathResource fields, constructors, methods, implement or subclass
The text is from its open source code.
ClassPathResource(String path) Create a new ClassPathResource for ClassLoader usage. | |
ClassPathResource(String path, @Nullable ClassLoader classLoader) Create a new ClassPathResource for ClassLoader usage. | |
ClassPathResource(String path, @Nullable Class> clazz) Create a new ClassPathResource for Class usage. |
Resource | createRelative(String relativePath) This implementation creates a ClassPathResource, applying the given path relative to the path of the underlying resource of this descriptor. |
boolean | exists() This implementation checks for the resolution of a resource URL. |
File | getFile() This implementation returns a File reference for the underlying class path resource, provided that it refers to a file in the file system. |
String | getFilename() This implementation returns the name of the file that this class path resource refers to. |
InputStream | getInputStream() This implementation opens an InputStream for the given class path resource. |
String | getPath() Return the path for this resource (as resource path within the class path). |
URI | getURI() This implementation builds a URI based on the URL returned by #getURL() . |
URL | getURL() This implementation returns a URL for the underlying class path resource, if available. |
boolean | isReadable() |