Package com.sshtools.common.files.vfs
Class VFSFileFactory
java.lang.Object
com.sshtools.common.files.vfs.VFSFileFactory
- All Implemented Interfaces:
com.sshtools.common.files.AbstractFileFactory<VFSFile>
-
Constructor Summary
ConstructorsConstructorDescriptionVFSFileFactory
(String defaultDirectory) VFSFileFactory
(org.apache.commons.vfs2.FileSystemManager manager) VFSFileFactory
(org.apache.commons.vfs2.FileSystemManager manager, String defaultDirectory) VFSFileFactory
(org.apache.commons.vfs2.FileSystemManager manager, org.apache.commons.vfs2.FileSystemOptions opts) VFSFileFactory
(org.apache.commons.vfs2.FileSystemManager manager, org.apache.commons.vfs2.FileSystemOptions opts, String defaultDirectory) VFSFileFactory
(org.apache.commons.vfs2.FileSystemOptions opts) VFSFileFactory
(org.apache.commons.vfs2.FileSystemOptions opts, String defaultDirectory) -
Method Summary
Modifier and TypeMethodDescriptionorg.apache.commons.vfs2.FileSystemManager
boolean
com.sshtools.common.events.Event
populateEvent
(com.sshtools.common.events.Event evt) void
setDefaultPath
(String path) void
setReturnURIForPath
(boolean useURI)
-
Constructor Details
-
VFSFileFactory
- Throws:
FileNotFoundException
-
VFSFileFactory
- Throws:
FileNotFoundException
-
VFSFileFactory
- Throws:
FileNotFoundException
-
VFSFileFactory
public VFSFileFactory(org.apache.commons.vfs2.FileSystemOptions opts, String defaultDirectory) throws FileNotFoundException - Throws:
FileNotFoundException
-
VFSFileFactory
public VFSFileFactory(org.apache.commons.vfs2.FileSystemManager manager) throws FileNotFoundException - Throws:
FileNotFoundException
-
VFSFileFactory
public VFSFileFactory(org.apache.commons.vfs2.FileSystemManager manager, String defaultDirectory) throws FileNotFoundException - Throws:
FileNotFoundException
-
VFSFileFactory
public VFSFileFactory(org.apache.commons.vfs2.FileSystemManager manager, org.apache.commons.vfs2.FileSystemOptions opts) throws FileNotFoundException - Throws:
FileNotFoundException
-
VFSFileFactory
public VFSFileFactory(org.apache.commons.vfs2.FileSystemManager manager, org.apache.commons.vfs2.FileSystemOptions opts, String defaultDirectory) throws FileNotFoundException - Throws:
FileNotFoundException
-
-
Method Details
-
getFileSystemManager
public org.apache.commons.vfs2.FileSystemManager getFileSystemManager() -
isReturnURIForPath
public boolean isReturnURIForPath() -
setReturnURIForPath
public void setReturnURIForPath(boolean useURI) -
getFile
public VFSFile getFile(String parent, String path) throws com.sshtools.common.permissions.PermissionDeniedException, IOException - Throws:
com.sshtools.common.permissions.PermissionDeniedException
IOException
-
getFile
public VFSFile getFile(String path) throws com.sshtools.common.permissions.PermissionDeniedException, IOException - Specified by:
getFile
in interfacecom.sshtools.common.files.AbstractFileFactory<VFSFile>
- Throws:
com.sshtools.common.permissions.PermissionDeniedException
IOException
-
populateEvent
public com.sshtools.common.events.Event populateEvent(com.sshtools.common.events.Event evt) - Specified by:
populateEvent
in interfacecom.sshtools.common.files.AbstractFileFactory<VFSFile>
-
setDefaultPath
- Throws:
FileNotFoundException
-
getDefaultPath
public VFSFile getDefaultPath() throws com.sshtools.common.permissions.PermissionDeniedException, IOException- Specified by:
getDefaultPath
in interfacecom.sshtools.common.files.AbstractFileFactory<VFSFile>
- Throws:
com.sshtools.common.permissions.PermissionDeniedException
IOException
-