public class VirtualMountManager extends Object
Constructor and Description |
---|
VirtualMountManager(Connection con,
VirtualFileFactory fileFactory) |
VirtualMountManager(Connection con,
VirtualFileFactory fileFactory,
VirtualMountTemplate homeMount,
VirtualMountTemplate... additionalMounts) |
Modifier and Type | Method and Description |
---|---|
VirtualMount |
createMount(String mount,
String path) |
VirtualMount |
createMount(String mount,
String path,
AbstractFileFactory<?> actualFileFactory) |
AbstractFileFactory<?> |
getDefaultFileFactory() |
VirtualMount |
getDefaultMount() |
VirtualMount |
getMount(String path) |
VirtualMount[] |
getMounts() |
VirtualMount[] |
getMounts(String path) |
VirtualFileFactory |
getVirtualFileFactory() |
boolean |
isMounted(String path) |
void |
mount(VirtualMount mount) |
void |
unmount(VirtualMount mount) |
public VirtualMountManager(Connection con, VirtualFileFactory fileFactory) throws IOException, PermissionDeniedException
IOException
PermissionDeniedException
public VirtualMountManager(Connection con, VirtualFileFactory fileFactory, VirtualMountTemplate homeMount, VirtualMountTemplate... additionalMounts) throws IOException, PermissionDeniedException
IOException
PermissionDeniedException
public void mount(VirtualMount mount) throws IOException, PermissionDeniedException
IOException
PermissionDeniedException
public void unmount(VirtualMount mount) throws IOException
IOException
public VirtualMount getDefaultMount()
public VirtualMount[] getMounts()
public boolean isMounted(String path)
public VirtualMount createMount(String mount, String path) throws IOException, PermissionDeniedException
IOException
PermissionDeniedException
public VirtualMount createMount(String mount, String path, AbstractFileFactory<?> actualFileFactory) throws IOException, PermissionDeniedException
IOException
PermissionDeniedException
public VirtualMount getMount(String path) throws IOException
IOException
public VirtualMount[] getMounts(String path)
public VirtualFileFactory getVirtualFileFactory()
public AbstractFileFactory<?> getDefaultFileFactory()
Copyright © 2024. All rights reserved.