| 构造器和说明 |
|---|
HttpResource(String url) |
HttpResource(URI url) |
| 限定符和类型 | 方法和说明 |
|---|---|
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.
|
public HttpResource(String url) throws URISyntaxException
public HttpResource(URI url)
public boolean exists()
Resourcepublic 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 InputStream getInputStream() throws IOException
ResourcegetInputStream 在接口中 ResourceIOException - exceptionpublic Resource createRelative(String relativeResourcePath) throws IOException
ResourcecreateRelative 在接口中 ResourcerelativeResourcePath - String relative resource pathIOException - exceptionCopyright © 2014. All rights reserved.