public interface Resource extends DestructableComponent, InitializableComponent, ValidatableComponent
| Modifier and Type | Method and Description |
|---|---|
boolean |
exists()
Checks whether the resource exists.
|
InputStream |
getInputStream()
Gets the input stream to the resource's data.
|
long |
getLastModifiedTime()
Gets the time, in milliseconds since the epoch, when the resource was last modified.
|
String |
getLocation()
Gets resource location information.
|
destroy, isDestroyedinitialize, isInitializedvalidate@Nonnull String getLocation()
boolean exists()
throws ResourceException
ResourceException - thrown if there is a problem determining if the resource exists@Nonnull InputStream getInputStream() throws ResourceException
ResourceException - thrown if an input stream can not be created for the resourcelong getLastModifiedTime()
throws ResourceException
ResourceException - thrown if the last modified time can not be determinedCopyright © 1999-2013. All Rights Reserved.