Class ControllerZip

  • All Implemented Interfaces:
    MController

    public class ControllerZip
    extends ControllerOS
    implements MController
    Implements an MController for tracking ZipEntries within a ZipFile
    • Constructor Detail

      • ControllerZip

        public ControllerZip()
    • Method Detail

      • getInventoryAll

        public Iterator<MFile> getInventoryAll​(CollectionConfig mc,
                                               boolean recheck)
        Description copied from interface: MController
        Returns all leaves in collection, recursing into subdirectories.
        Specified by:
        getInventoryAll in interface MController
        Overrides:
        getInventoryAll in class ControllerOS
        Parameters:
        mc - defines the collection to scan
        recheck - if false, may use cached results. otherwise must sync with File OS
        Returns:
        iterator over Mfiles, or null if collection does not exist
      • getInventoryTop

        public Iterator<MFile> getInventoryTop​(CollectionConfig mc,
                                               boolean recheck)
        Description copied from interface: MController
        Returns all leaves in top collection, not recursing into subdirectories.
        Specified by:
        getInventoryTop in interface MController
        Overrides:
        getInventoryTop in class ControllerOS
        Parameters:
        mc - defines the collection to scan
        recheck - if false, may use cached results. otherwise must sync with File OS
        Returns:
        iterator over Mfiles, or null if collection does not exist
      • getSubdirs

        public Iterator<MFile> getSubdirs​(CollectionConfig mc,
                                          boolean recheck)
        Description copied from interface: MController
        Returns all subdirectories in top collection.
        Specified by:
        getSubdirs in interface MController
        Overrides:
        getSubdirs in class ControllerOS
        Parameters:
        mc - defines the collection to scan
        recheck - if false, may use cached results. otherwise must sync with File OS
        Returns:
        iterator over Mfiles, or null if collection does not exist