public abstract class AbstractFileResolvingResource extends Object implements Resource
Abstract base class for resources which resolve URLs into File references,
such as org.springframework.core.io.UrlResource or org.springframework.core.io.ClassPathResource.
Detects the "file" protocol as well as the JBoss "vfs" protocol in URLs, resolving file system references accordingly.
| Type Params | Return Type | Name and description |
|---|---|---|
|
public long |
contentLength() |
|
public boolean |
exists() |
|
public 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. |
|
protected File |
getFile(URI uri)This implementation returns a File reference for the underlying class path resource, provided that it refers to a file in the file system. |
|
protected File |
getFileForLastModifiedCheck()This implementation determines the underlying File (or jar file, in case of a resource in a jar/zip). |
|
public boolean |
isReadable() |
|
public long |
lastModified() |
This implementation returns a File reference for the underlying class path resource, provided that it refers to a file in the file system.
This implementation returns a File reference for the underlying class path resource, provided that it refers to a file in the file system.
This implementation determines the underlying File (or jar file, in case of a resource in a jar/zip).