|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.apache.ivy.plugins.repository.ssh.SshResource
public class SshResource
Resource for SSH Ivy Repository
| Constructor Summary | |
|---|---|
SshResource()
|
|
SshResource(SshRepository repository,
java.lang.String uri)
|
|
SshResource(SshRepository repository,
java.lang.String uri,
boolean bExists,
long len,
long lastModified)
|
|
| 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 |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public SshResource()
public SshResource(SshRepository repository,
java.lang.String uri)
public SshResource(SshRepository repository,
java.lang.String uri,
boolean bExists,
long len,
long lastModified)
| Method Detail |
|---|
public boolean exists()
Resource
exists in interface Resourceboolean value indicating if the resource is available.public long getContentLength()
Resource
getContentLength in interface Resourcelong value representing the size of the resource in bytes.public 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 java.lang.String getName()
Resource
getName in interface Resourcepublic java.lang.String toString()
toString in class java.lang.Objectpublic boolean isLocal()
Resource
isLocal in interface Resourceboolean value indicating if the resource is local.public Resource clone(java.lang.String cloneName)
Resource
clone in interface ResourcecloneName - the name of the clone
public java.io.InputStream openStream()
throws java.io.IOException
Resource
openStream in interface Resourcejava.io.IOException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||