|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Resource
Represents a resource in an Ivy Repository
. The resource interface allows one to obtain
the following information about a resource:
false
, 0
, ""
).
In other words, the specified interface methods should not throw RuntimeExceptions. Message.verbose(java.lang.String)
method. false
, 0
, ""
).
Method Summary | |
---|---|
Resource |
clone(java.lang.String cloneName)
Clones this resource with a new resource with a different name |
boolean |
exists()
Determine if the resource is available. |
long |
getContentLength()
Get the resource size |
long |
getLastModified()
Get the date the resource was last modified |
java.lang.String |
getName()
Get the name of the resource. |
boolean |
isLocal()
Is this resource local to this host, i.e. is it on the file system? |
java.io.InputStream |
openStream()
Opens a stream on this resource |
Method Detail |
---|
java.lang.String getName()
long getLastModified()
long
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.long getContentLength()
long
value representing the size of the resource in bytes.boolean exists()
boolean
value indicating if the resource is available.boolean isLocal()
boolean
value indicating if the resource is local.Resource clone(java.lang.String cloneName)
cloneName
- the name of the clone
java.io.InputStream openStream() throws java.io.IOException
java.io.IOException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |