Package com.tccc.kos.commons.core.vfs
Class StackedVFSSource
java.lang.Object
com.tccc.kos.commons.core.vfs.AbstractVFSSource
com.tccc.kos.commons.core.vfs.StackedVFSSource
Implementation of VFSSource that supports stacked sources. This source can be
 mounted but then sources can be added and removed from this source as a
 priority order stack.
- Since:
- 1.0
- Version:
- 2022-08-30
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptiongetBasePath(VFSSource source) Returns the base path to the specified VFSSource.getInputStream(String path) Retrieves the input stream for the given path.voidPushes a new source as the top overlay.voidRemoves the specified source from the list.Methods inherited from class com.tccc.kos.commons.core.vfs.AbstractVFSSourcegetParent, isEnabled, setEnabled, setParentMethods inherited from class java.lang.Objectequals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.tccc.kos.commons.core.vfs.VFSSourcegetBasePath, getDetails, getFullPath, onUnmount
- 
Constructor Details- 
StackedVFSSourcepublic StackedVFSSource()Constructs a new instance.
 
- 
- 
Method Details- 
getInputStreamRetrieves the input stream for the given path.- Specified by:
- getInputStreamin interface- VFSSource
- Parameters:
- path- the requested path
- Returns:
- the input stream
 
- 
pushPushes a new source as the top overlay.- Parameters:
- source- the source to put at the top of the list
 
- 
removeRemoves the specified source from the list.- Parameters:
- source- the source to remove
 
- 
getBasePathReturns the base path to the specified VFSSource.- Specified by:
- getBasePathin interface- VFSParent
- Parameters:
- source- the source to return the base path for
- Returns:
- the base path to the source
 
 
-