|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.opensaml.util.resource.AbstractFilteredResource
org.opensaml.util.resource.FilesystemResource
public class FilesystemResource
A resource representing a file on the local filesystem.
Constructor Summary | |
---|---|
FilesystemResource(java.lang.String resourcePath)
Constructor. |
|
FilesystemResource(java.lang.String resourcePath,
ResourceFilter resourceFilter)
Constructor. |
|
FilesystemResource(java.net.URI resourceURI)
Constructor. |
|
FilesystemResource(java.net.URI resourceURI,
ResourceFilter resourceFilter)
Constructor. |
Method Summary | |
---|---|
boolean |
equals(java.lang.Object o)
|
boolean |
exists()
Checks whether the resource exists. |
java.io.InputStream |
getInputStream()
Gets the inputstream to the resource's data. |
org.joda.time.DateTime |
getLastModifiedTime()
Gets the date and time the resource was last modified. |
java.lang.String |
getLocation()
Gets resource location information. |
int |
hashCode()
|
java.lang.String |
toString()
|
Methods inherited from class org.opensaml.util.resource.AbstractFilteredResource |
---|
getResourceFilter |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public FilesystemResource(java.lang.String resourcePath) throws ResourceException
resourcePath
- the path to the file for this resource
ResourceException
- thrown if the resource path is null or emptypublic FilesystemResource(java.net.URI resourceURI) throws ResourceException
resourceURI
- file: URI to the file
ResourceException
- thrown if the resource path is null or emptypublic FilesystemResource(java.lang.String resourcePath, ResourceFilter resourceFilter) throws ResourceException
resourcePath
- the path to the file for this resourceresourceFilter
- filter to apply to this resource
ResourceException
- thrown if the resource path is null or emptypublic FilesystemResource(java.net.URI resourceURI, ResourceFilter resourceFilter) throws ResourceException
resourceURI
- the file: URI to the file for this resourceresourceFilter
- filter to apply to this resource
ResourceException
- thrown if the resource path is null or emptyMethod Detail |
---|
public boolean exists() throws ResourceException
ResourceException
- thrown if there is a problem determining if the resource existspublic java.io.InputStream getInputStream() throws ResourceException
ResourceException
- thrown if an input stream can not be created for the resourcepublic org.joda.time.DateTime getLastModifiedTime() throws ResourceException
ResourceException
- thrown if the last modified time can not be determinedpublic java.lang.String getLocation()
public java.lang.String toString()
toString
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |