public class VFSLocation
extends java.lang.Object
implements java.io.Serializable
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
LOCATION_ID_PREFIX |
| Constructor and Description |
|---|
VFSLocation() |
VFSLocation(java.lang.String path,
VirtualFileSystemManagerHook vfsManager) |
public static final java.lang.String LOCATION_ID_PREFIX
public VFSLocation()
public VFSLocation(java.lang.String path,
VirtualFileSystemManagerHook vfsManager)
public java.lang.String getAbsolutePath()
public void setAbsolutePath(java.lang.String absolutePath)
public VirtualFileSystemManagerHook getFilesystemManager()
public void setFilesystemManager(VirtualFileSystemManagerHook filesystemManager)
public VirtualFileSystemDeamon getFileSystem()
public boolean isRoot()
public boolean isFileSystemRoot()
public boolean isWildcardLocation()
public boolean isVirtualLocation()
public java.util.Collection<VFSLocation> resolveWildcards(VirtualFileSystemDeamon vfs)
public java.lang.String prettyPrint()
public java.lang.String getPathInVirtualSystem()
public java.lang.String getPathInFileSystem()
public PathHelper getPathHelper()
public VFSLocation newSubLocation(java.lang.Object pathway, boolean id)
public VFSLocation newSubLocation(java.lang.String pathway, boolean id)
public VFSLocation newNonExistingSubLocation(java.lang.String pathway)
public VFSLocation newVirtualSubLocation(VirtualContentProviderHook virtualContentProvider)
public VirtualContentProviderHook getVirtualContentProvider()
public VFSLocation getVirtualBaseLocation()
public VFSLocation getVirtualParentLocation()
public VFSLocation getParentLocation()
public boolean isFolder()
public java.lang.Object getChildObject(VFSObjectInfo childInfo)
public java.lang.Object getObject()
throws VFSException
VFSExceptionpublic int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Objectpublic boolean hasChildren()
public boolean hasContent()
throws VFSException
VFSExceptionpublic byte[] getContent()
throws VFSException
VFSExceptionpublic void setContent(byte[] content)
throws VFSException
VFSExceptionpublic java.lang.String getContentType()
throws VFSException
VFSExceptionpublic java.lang.String getName()
public java.util.Date getLastModified()
public boolean exists()
public long getSize()
public boolean canWriteIntoLocation()
public boolean isLocationDeletable()
public void delete()
throws VFSException
VFSExceptionpublic VFSLocation rename(java.lang.String name)
public boolean create()
throws VFSException
VFSExceptionpublic boolean mkdir()
throws VFSException
VFSExceptionpublic void writeIntoLocation(byte[] uploadData)
throws VFSException
VFSException