| 构造器和说明 |
|---|
FileResource(File file) |
| 限定符和类型 | 方法和说明 |
|---|---|
Resource |
createRelative(String relativePath)
Creates relative resource for current resource.
|
boolean |
exists()
Tests if resource exists.
|
InputStream |
getInputStream()
Returns resource input stream.
|
String |
getName()
Returns a unique name for this resource.
|
long |
lastModified()
Returns the time that the FILE source was last modified.
|
String |
toString() |
public FileResource(File file)
public boolean exists()
Resourcepublic InputStream getInputStream() throws IOException
ResourcegetInputStream 在接口中 ResourceIOException - exceptionpublic long lastModified()
ResourcelastModified 在接口中 Resourcelong value representing the time the resource was last modified, measured in milliseconds
since the epoch (00:00:00 GMT, January 1, 1970).public Resource createRelative(String relativePath)
ResourcecreateRelative 在接口中 ResourcerelativePath - String relative resource pathCopyright © 2014. All rights reserved.