public class VirtualFileFactory extends java.lang.Object implements com.sshtools.common.files.AbstractFileFactory<VirtualFile>
Modifier and Type | Field and Description |
---|---|
protected boolean |
cached |
protected VirtualMountManager |
mgr |
Constructor and Description |
---|
VirtualFileFactory(VirtualMountTemplate defaultMount,
VirtualMountTemplate... additionalMounts) |
Modifier and Type | Method and Description |
---|---|
protected VirtualFile |
getCachedObject(java.lang.String virtualPath) |
VirtualFile |
getDefaultPath() |
VirtualFile |
getFile(java.lang.String path) |
VirtualMountManager |
getMountManager() |
boolean |
isCached() |
com.sshtools.common.events.Event |
populateEvent(com.sshtools.common.events.Event evt) |
void |
setCached(boolean cached) |
protected boolean cached
protected VirtualMountManager mgr
public VirtualFileFactory(VirtualMountTemplate defaultMount, VirtualMountTemplate... additionalMounts) throws java.io.IOException, com.sshtools.common.permissions.PermissionDeniedException
java.io.IOException
com.sshtools.common.permissions.PermissionDeniedException
public boolean isCached()
public void setCached(boolean cached)
public VirtualFile getFile(java.lang.String path) throws com.sshtools.common.permissions.PermissionDeniedException, java.io.IOException
getFile
in interface com.sshtools.common.files.AbstractFileFactory<VirtualFile>
com.sshtools.common.permissions.PermissionDeniedException
java.io.IOException
protected VirtualFile getCachedObject(java.lang.String virtualPath)
public VirtualMountManager getMountManager() throws java.io.IOException, com.sshtools.common.permissions.PermissionDeniedException
java.io.IOException
com.sshtools.common.permissions.PermissionDeniedException
public com.sshtools.common.events.Event populateEvent(com.sshtools.common.events.Event evt)
populateEvent
in interface com.sshtools.common.files.AbstractFileFactory<VirtualFile>
public VirtualFile getDefaultPath() throws com.sshtools.common.permissions.PermissionDeniedException, java.io.IOException
getDefaultPath
in interface com.sshtools.common.files.AbstractFileFactory<VirtualFile>
com.sshtools.common.permissions.PermissionDeniedException
java.io.IOException
Copyright © 2022. All rights reserved.