Class AbstractVfsContainer

    • Constructor Summary

      Constructors 
      Constructor Description
      AbstractVfsContainer()
      Constructs a new instance for subclasses.
    • Constructor Detail

    • Method Detail

      • addComponent

        protected void addComponent​(java.lang.Object component)
                             throws FileSystemException
        Adds a subcomponent to this component.

        If the sub-component implements VfsComponent, it is initialized. All sub-components are closed when this component is closed.

        Parameters:
        component - the component to add.
        Throws:
        FileSystemException - if any error occurs.
      • close

        public void close()
        Closes the subcomponents of this component.
        Specified by:
        close in interface java.lang.AutoCloseable
        Specified by:
        close in interface java.io.Closeable
        Specified by:
        close in interface VfsComponent
        Overrides:
        close in class AbstractVfsComponent
      • removeComponent

        protected void removeComponent​(java.lang.Object component)
        Removes a subcomponent from this component.
        Parameters:
        component - the component to remove.