Package com.tccc.kos.commons.core.vfs
Class AbstractVFSSource
java.lang.Object
com.tccc.kos.commons.core.vfs.AbstractVFSSource
- All Implemented Interfaces:
VFSSource
- Direct Known Subclasses:
FilesystemVFSSource
,KabVFSSource
,PathRewritingVFSSource
,ProxyVFSSource
,StackedVFSSource
,VFS
Abstract base class for all concrete VFSSource classes.
- Since:
- 1.0
- Version:
- 2022-08-30
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.tccc.kos.commons.core.vfs.VFSSource
getBasePath, getDetails, getFullPath, getInputStream, onUnmount
-
Constructor Details
-
AbstractVFSSource
public AbstractVFSSource()
-
-
Method Details
-
getParent
Retrieves ths VFS parent. -
setParent
Sets the VFS parent. -
setEnabled
public void setEnabled(boolean enabled) Set the enabled flag for the source. Sources that are disabled will not return any content but are still linked to the VFS graph.- Parameters:
enabled
- true to enable the source
-
isEnabled
public boolean isEnabled()Description copied from interface:VFSSource
Return true if the source is enabled. Disabled sources will not be accessible.
-