Class DowngradedDirectoryStream

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

    final class DowngradedDirectoryStream
    extends java.lang.Object
    implements java.nio.file.DirectoryStream<java.nio.file.Path>
    A thin wrapper around a SecureDirectoryStream that exists only to implement DirectoryStream and NOT implement SecureDirectoryStream.
    • 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
      private java.nio.file.SecureDirectoryStream<java.nio.file.Path> secureDirectoryStream  
    • Constructor Summary

      Constructors 
      Constructor Description
      DowngradedDirectoryStream​(java.nio.file.SecureDirectoryStream<java.nio.file.Path> secureDirectoryStream)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void close()  
      java.util.Iterator<java.nio.file.Path> iterator()  
      • 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

      • secureDirectoryStream

        private final java.nio.file.SecureDirectoryStream<java.nio.file.Path> secureDirectoryStream
    • Constructor Detail

      • DowngradedDirectoryStream

        DowngradedDirectoryStream​(java.nio.file.SecureDirectoryStream<java.nio.file.Path> secureDirectoryStream)
    • 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