Class PathTransformingDirectoryStream

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

    public class PathTransformingDirectoryStream
    extends java.lang.Object
    implements java.nio.file.DirectoryStream<java.nio.file.Path>
    • Nested Class Summary

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

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

      Constructors 
      Constructor Description
      PathTransformingDirectoryStream​(java.nio.file.DirectoryStream<java.nio.file.Path> sysdirstream, java.util.function.Function<java.nio.file.Path,​MetaPath> sysToMetaFunc)  
    • Method Summary

      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
    • Constructor Detail

      • PathTransformingDirectoryStream

        public PathTransformingDirectoryStream​(java.nio.file.DirectoryStream<java.nio.file.Path> sysdirstream,
                                               java.util.function.Function<java.nio.file.Path,​MetaPath> sysToMetaFunc)
    • 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