Package org.apache.aries.util.filesystem
Interface ICloseableDirectory
- All Superinterfaces:
AutoCloseable,Closeable,IDirectory,IFile,Iterable<IFile>
- All Known Implementing Classes:
CloseableDirectory,InputStreamClosableDirectory,NestedCloseableDirectory,ZipCloseableDirectory
Implementation of IDirectory that is more efficient for batch operations as it does not due
automatic resource management. Instead the user has to explicitly call close to release resources.
Resources are cached for the current IDirectory archive only. Nested archives should be converted to
ICloseableDirectory separately.-
Method Summary
Modifier and TypeMethodDescriptionbooleanisClosed()Checks whether the closeable directory has been closedMethods inherited from interface org.apache.aries.util.filesystem.IDirectory
getFile, isRoot, listAllFiles, listFiles, toCloseableMethods inherited from interface org.apache.aries.util.filesystem.IFile
convert, convertNested, getLastModified, getName, getParent, getRoot, getSize, isDirectory, isFile, open, toURLMethods inherited from interface java.lang.Iterable
forEach, iterator, spliterator
-
Method Details
-
isClosed
boolean isClosed()Checks whether the closeable directory has been closed
-