Class FileSystemOcflObjectRootDirIterator
- java.lang.Object
-
- edu.wisc.library.ocfl.core.storage.common.OcflObjectRootDirIterator
-
- edu.wisc.library.ocfl.core.storage.filesystem.FileSystemOcflObjectRootDirIterator
-
- All Implemented Interfaces:
Closeable,AutoCloseable,Iterator<String>
public class FileSystemOcflObjectRootDirIterator extends OcflObjectRootDirIterator
Implementation ofOcflObjectRootDirIteratorthat iterates over the filesystem
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class edu.wisc.library.ocfl.core.storage.common.OcflObjectRootDirIterator
OcflObjectRootDirIterator.Directory
-
-
Constructor Summary
Constructors Constructor Description FileSystemOcflObjectRootDirIterator(Path root)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected OcflObjectRootDirIterator.DirectorycreateDirectory(String path)Creates an object to maintain directory stateprotected booleanisObjectRoot(String path)Indicates if a directory path is an object root path-
Methods inherited from class edu.wisc.library.ocfl.core.storage.common.OcflObjectRootDirIterator
close, hasNext, next
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface java.util.Iterator
forEachRemaining, remove
-
-
-
-
Constructor Detail
-
FileSystemOcflObjectRootDirIterator
public FileSystemOcflObjectRootDirIterator(Path root)
-
-
Method Detail
-
isObjectRoot
protected boolean isObjectRoot(String path)
Description copied from class:OcflObjectRootDirIteratorIndicates if a directory path is an object root path- Specified by:
isObjectRootin classOcflObjectRootDirIterator- Parameters:
path- directory path- Returns:
- true if path is an object root path
-
createDirectory
protected OcflObjectRootDirIterator.Directory createDirectory(String path)
Description copied from class:OcflObjectRootDirIteratorCreates an object to maintain directory state- Specified by:
createDirectoryin classOcflObjectRootDirIterator- Parameters:
path- directory path- Returns:
- directory object
-
-