org.apache.ivy.plugins.repository
public interface Resource
false
, 0
, ""
).
In other words, the specified interface methods should not throw RuntimeExceptions. false
, 0
, ""
).Method Summary | |
---|---|
Resource | clone(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
|
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?
|
InputStream | openStream()
Opens a stream on this resource
|
Parameters: cloneName the name of the clone
Returns: the cloned resource
Returns: boolean
value indicating if the resource is available.
Returns: a long
value representing the size of the resource in bytes.
Returns: A 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.
Returns: the repositorie's assigned resource name/identifier.
Returns: boolean
value indicating if the resource is local.
Returns: the opened input stream