Example usage for Java org.springframework.core.io FileSystemResource fields, constructors, methods, implement or subclass
The text is from its open source code.
FileSystemResource(String path) Create a new FileSystemResource from a file path. | |
FileSystemResource(File file) Create a new FileSystemResource from a File handle. | |
FileSystemResource(Path filePath) Create a new FileSystemResource from a Path handle, performing all file system interactions via NIO.2 instead of File . |
long | contentLength() This implementation returns the underlying File/Path length. |
boolean | exists() This implementation returns whether the underlying file exists. |
String | getDescription() This implementation returns a description that includes the absolute path of the file. |
File | getFile() This implementation returns the underlying File reference. |
String | getFilename() This implementation returns the name of the file. |
InputStream | getInputStream() This implementation opens a NIO file stream for the underlying file. |
String | getPath() Return the file path for this resource. |
URL | getURL() This implementation returns a URL for the underlying file. |
String | toString() This implementation returns the description of this resource. |