|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.apache.ivy.plugins.repository.vfs.VfsResource
public class VfsResource
VFS implementation of the Resource interface
| Constructor Summary | |
|---|---|
VfsResource(java.lang.String vfsURI,
FileSystemManager fsManager)
|
|
| Method Summary | |
|---|---|
Resource |
clone(java.lang.String cloneName)
Clones this resource with a new resource with a different name |
boolean |
exists()
Flag indicating whether a resource is available for querying |
java.util.List |
getChildren()
Get a list of direct descendents of the given resource. |
FileContent |
getContent()
|
long |
getContentLength()
Get the size of the resource |
long |
getLastModified()
Get the last modification time of the resource. |
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? |
static java.lang.String |
normalize(java.lang.String vfsURI)
The VFS FileName getURI method seems to have a bug in it where file: URIs will have 4 forward slashes instead of 3. |
java.io.InputStream |
openStream()
Opens a stream on this resource |
boolean |
physicallyExists()
Return a flag indicating whether a provided VFS resource physically exists |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public VfsResource(java.lang.String vfsURI,
FileSystemManager fsManager)
| Method Detail |
|---|
public java.util.List getChildren()
ArrayList of VFSResourcespublic FileContent getContent()
public java.lang.String getName()
getName in interface ResourceString representing the Resource URL.public Resource clone(java.lang.String cloneName)
Resource
clone in interface ResourcecloneName - the name of the clone
public static java.lang.String normalize(java.lang.String vfsURI)
vfsURI -
public long getLastModified()
getLastModified in interface Resourcelong indicating last modified time.public long getContentLength()
getContentLength in interface Resourcelong representing the size of the resource (in bytes).public boolean exists()
exists in interface Resourcetrue if the resource is available for querying, false
otherwise.public boolean physicallyExists()
true if the resource physically exists, false
otherwise.public 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 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 | ||||||||