-
- All Implemented Interfaces:
-
kotlin.collections.Iterable,org.readium.r2.shared.util.SuspendingCloseable,org.readium.r2.shared.util.data.Container
public final class DirectoryContainer implements Container<Resource>
A file system directory as a Container.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public classDirectoryContainer.Companion
-
Field Summary
Fields Modifier and Type Field Description private final Set<Url>entriesprivate final AbsoluteUrlsourceUrl
-
Constructor Summary
Constructors Constructor Description DirectoryContainer(File root, Set<Url> entries)
-
Method Summary
Modifier and Type Method Description Set<Url>getEntries()List of all the container entries. AbsoluteUrlgetSourceUrl()Resourceget(Url url)Returns the entry at the given url or null if there is none. Unitclose()Closes this object and releases any resources associated with it. -
Methods inherited from class org.readium.r2.shared.util.file.DirectoryContainer
iterator -
Methods inherited from class org.readium.r2.shared.util.data.Container
forEach, spliterator -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Method Detail
-
getEntries
Set<Url> getEntries()
List of all the container entries.
-
getSourceUrl
AbsoluteUrl getSourceUrl()
-
-
-
-