|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectfr.jayasoft.ivy.repository.file.FileResource
| Constructor Summary | |
FileResource(java.io.File f)
|
|
| Method Summary | |
boolean |
exists()
Determine if the resource is available. |
long |
getContentLength()
Get the resource size |
java.io.File |
getFile()
|
long |
getLastModified()
Get the date the resource was last modified |
java.lang.String |
getName()
Get the name of the resource. |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public FileResource(java.io.File f)
| Method Detail |
public java.lang.String getName()
Resource
getName in interface Resourcepublic long getLastModified()
Resource
getLastModified in interface Resourcelong value representing the time the file was
last modified, measured in milliseconds since the epoch
(00:00:00 GMT, January 1, 1970), or 0L if the
file does not exist or if an I/O error occurs.public long getContentLength()
Resource
getContentLength in interface Resourcelong value representing the size of the resource in bytes.public boolean exists()
Resource
exists in interface Resourceboolean value indicating if the resource is available.public java.lang.String toString()
public java.io.File getFile()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||