Package thredds.filesystem.zarr
Class ControllerZip
- java.lang.Object
-
- thredds.filesystem.ControllerOS
-
- thredds.filesystem.zarr.ControllerZip
-
- All Implemented Interfaces:
MController
public class ControllerZip extends ControllerOS implements MController
Implements an MController for tracking ZipEntries within a ZipFile
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description protected static class
ControllerZip.FilteredIterator
protected static class
ControllerZip.MFileIterator
protected static class
ControllerZip.MFileIteratorLeaves
static class
ControllerZip.Provider
-
Constructor Summary
Constructors Constructor Description ControllerZip()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
Iterator<MFile>
getInventoryAll(CollectionConfig mc, boolean recheck)
Returns all leaves in collection, recursing into subdirectories.Iterator<MFile>
getInventoryTop(CollectionConfig mc, boolean recheck)
Returns all leaves in top collection, not recursing into subdirectories.Iterator<MFile>
getSubdirs(CollectionConfig mc, boolean recheck)
Returns all subdirectories in top collection.
-
-
-
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 interfaceMController
- Overrides:
getInventoryAll
in classControllerOS
- Parameters:
mc
- defines the collection to scanrecheck
- 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 interfaceMController
- Overrides:
getInventoryTop
in classControllerOS
- Parameters:
mc
- defines the collection to scanrecheck
- 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 interfaceMController
- Overrides:
getSubdirs
in classControllerOS
- Parameters:
mc
- defines the collection to scanrecheck
- if false, may use cached results. otherwise must sync with File OS- Returns:
- iterator over Mfiles, or null if collection does not exist
-
close
public void close()
- Specified by:
close
in interfaceMController
- Overrides:
close
in classControllerOS
-
-