|
|||||||||
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,
org.apache.commons.vfs.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. |
org.apache.commons.vfs.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. |
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, org.apache.commons.vfs.FileSystemManager fsManager)
Method Detail |
---|
public java.util.List getChildren()
ArrayList
of VFSResourcespublic org.apache.commons.vfs.FileContent getContent()
public java.lang.String getName()
getName
in interface Resource
String
representing the Resource URL.public Resource clone(java.lang.String cloneName)
Resource
clone
in interface Resource
cloneName
- the name of the clone
public static java.lang.String normalize(java.lang.String vfsURI)
vfsURI
-
public long getLastModified()
getLastModified
in interface Resource
long
indicating last modified time.public long getContentLength()
getContentLength
in interface Resource
long
representing the size of the resource (in bytes).public boolean exists()
exists
in interface Resource
true
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.Object
public boolean isLocal()
Resource
isLocal
in interface Resource
boolean
value indicating if the resource is local.public java.io.InputStream openStream() throws java.io.IOException
Resource
openStream
in interface Resource
java.io.IOException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |