Example usage for Java org.springframework.core.io Resource fields, constructors, methods, implement or subclass
The text is from its open source code.
long | contentLength() Determine the content length for this resource. |
Resource | createRelative(String relativePath) Create a resource relative to this resource. |
boolean | equals(Object obj) Indicates whether some other object is "equal to" this one. |
boolean | exists() Determine whether this resource actually exists in physical form. |
Class> | getClass() Returns the runtime class of this Object . |
String | getDescription() Return a description for this resource, to be used for error output when working with the resource. |
File | getFile() Return a File handle for this resource. |
String | getFilename() Determine a filename for this resource, i.e. |
InputStream | getInputStream() Return an InputStream for the content of an underlying resource. |
URI | getURI() Return a URI handle for this resource. |
URL | getURL() Return a URL handle for this resource. |
int | hashCode() Returns a hash code value for the object. |
boolean | isFile() Determine whether this resource represents a file in a file system. |
boolean | isOpen() Indicate whether this resource represents a handle with an open stream. |
boolean | isReadable() Indicate whether non-empty contents of this resource can be read via #getInputStream() . |
long | lastModified() Determine the last-modified timestamp for this resource. |
String | toString() Returns a string representation of the object. |