org.sapia.resource
Interface Resource
- All Known Implementing Classes:
- FileResource, StringResource, UrlResource
public interface Resource
Abstracts a file resource.
- Author:
- Yanick Duchesne
lastModified
long lastModified()
- Returns:
- the time, in
millis, at which this resource was
last modified.
getURI
java.lang.String getURI()
- Returns:
- the URI that this resource corresponds to.
getInputStream
java.io.InputStream getInputStream()
throws java.io.IOException
- Returns:
- the
InputStream corresponding to this resource.
- Throws:
java.io.IOException
getRelative
Resource getRelative(java.lang.String uri)
throws java.io.IOException
- Parameters:
uri - a URI.
- Returns:
- the
Resource corresponding to the given relative URI.
- Throws:
java.io.IOException
Copyright © 2011 Sapia OSS. All Rights Reserved.