public interface Resource
| 限定符和类型 | 方法和说明 |
|---|---|
Resource |
createRelative(String relativeResourcePath)
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.
|
boolean exists()
long lastModified()
long value representing the time the resource was last modified, measured in milliseconds
since the epoch (00:00:00 GMT, January 1, 1970).InputStream getInputStream() throws IOException
IOException - exceptionResource createRelative(String relativeResourcePath) throws IOException
relativeResourcePath - String relative resource pathIOException - exceptionString getName()
Copyright © 2014. All rights reserved.