Class RootedDirectoryStream

  • All Implemented Interfaces:
    java.io.Closeable, java.lang.AutoCloseable, java.lang.Iterable<java.nio.file.Path>, java.nio.file.DirectoryStream<java.nio.file.Path>
    Direct Known Subclasses:
    RootedSecureDirectoryStream

    public class RootedDirectoryStream
    extends java.lang.Object
    implements java.nio.file.DirectoryStream<java.nio.file.Path>
    secure directory stream proxy for a RootedFileSystem
    • Nested Class Summary

      • Nested classes/interfaces inherited from interface java.nio.file.DirectoryStream

        java.nio.file.DirectoryStream.Filter<T extends java.lang.Object>
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected java.nio.file.DirectoryStream<java.nio.file.Path> delegate  
      protected RootedFileSystem rfs  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void close()  
      java.util.Iterator<java.nio.file.Path> iterator()  
      protected java.util.Iterator<java.nio.file.Path> root​(RootedFileSystem rfs, java.util.Iterator<java.nio.file.Path> iter)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface java.lang.Iterable

        forEach, spliterator
    • Field Detail

      • delegate

        protected final java.nio.file.DirectoryStream<java.nio.file.Path> delegate
    • Constructor Detail

      • RootedDirectoryStream

        public RootedDirectoryStream​(RootedFileSystem rfs,
                                     java.nio.file.DirectoryStream<java.nio.file.Path> delegate)
    • Method Detail

      • iterator

        public java.util.Iterator<java.nio.file.Path> iterator()
        Specified by:
        iterator in interface java.nio.file.DirectoryStream<java.nio.file.Path>
        Specified by:
        iterator in interface java.lang.Iterable<java.nio.file.Path>
      • close

        public void close()
                   throws java.io.IOException
        Specified by:
        close in interface java.lang.AutoCloseable
        Specified by:
        close in interface java.io.Closeable
        Throws:
        java.io.IOException
      • root

        protected java.util.Iterator<java.nio.file.Path> root​(RootedFileSystem rfs,
                                                              java.util.Iterator<java.nio.file.Path> iter)