Class RootedSecureDirectoryStream

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

    public class RootedSecureDirectoryStream
    extends RootedDirectoryStream
    implements java.nio.file.SecureDirectoryStream<java.nio.file.Path>
    A 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>
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      private java.nio.file.SecureDirectoryStream<java.nio.file.Path> delegate()  
      void deleteDirectory​(java.nio.file.Path path)  
      void deleteFile​(java.nio.file.Path path)  
      protected java.nio.file.Path fixPath​(java.nio.file.Path p)  
      <V extends java.nio.file.attribute.FileAttributeView>
      V
      getFileAttributeView​(java.lang.Class<V> type)  
      <V extends java.nio.file.attribute.FileAttributeView>
      V
      getFileAttributeView​(java.nio.file.Path path, java.lang.Class<V> type, java.nio.file.LinkOption... options)  
      void move​(java.nio.file.Path srcpath, java.nio.file.SecureDirectoryStream<java.nio.file.Path> targetdir, java.nio.file.Path targetpath)  
      java.nio.channels.SeekableByteChannel newByteChannel​(java.nio.file.Path path, java.util.Set<? extends java.nio.file.OpenOption> options, java.nio.file.attribute.FileAttribute<?>... attrs)  
      java.nio.file.SecureDirectoryStream<java.nio.file.Path> newDirectoryStream​(java.nio.file.Path path, java.nio.file.LinkOption... options)  
      • Methods inherited from class java.lang.Object

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

        close
      • Methods inherited from interface java.nio.file.DirectoryStream

        iterator
      • Methods inherited from interface java.lang.Iterable

        forEach, spliterator
    • Constructor Detail

      • RootedSecureDirectoryStream

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

      • newDirectoryStream

        public java.nio.file.SecureDirectoryStream<java.nio.file.Path> newDirectoryStream​(java.nio.file.Path path,
                                                                                          java.nio.file.LinkOption... options)
                                                                                   throws java.io.IOException
        Specified by:
        newDirectoryStream in interface java.nio.file.SecureDirectoryStream<java.nio.file.Path>
        Throws:
        java.io.IOException
      • fixPath

        protected java.nio.file.Path fixPath​(java.nio.file.Path p)
      • newByteChannel

        public java.nio.channels.SeekableByteChannel newByteChannel​(java.nio.file.Path path,
                                                                    java.util.Set<? extends java.nio.file.OpenOption> options,
                                                                    java.nio.file.attribute.FileAttribute<?>... attrs)
                                                             throws java.io.IOException
        Specified by:
        newByteChannel in interface java.nio.file.SecureDirectoryStream<java.nio.file.Path>
        Throws:
        java.io.IOException
      • deleteFile

        public void deleteFile​(java.nio.file.Path path)
                        throws java.io.IOException
        Specified by:
        deleteFile in interface java.nio.file.SecureDirectoryStream<java.nio.file.Path>
        Throws:
        java.io.IOException
      • deleteDirectory

        public void deleteDirectory​(java.nio.file.Path path)
                             throws java.io.IOException
        Specified by:
        deleteDirectory in interface java.nio.file.SecureDirectoryStream<java.nio.file.Path>
        Throws:
        java.io.IOException
      • move

        public void move​(java.nio.file.Path srcpath,
                         java.nio.file.SecureDirectoryStream<java.nio.file.Path> targetdir,
                         java.nio.file.Path targetpath)
                  throws java.io.IOException
        Specified by:
        move in interface java.nio.file.SecureDirectoryStream<java.nio.file.Path>
        Throws:
        java.io.IOException
      • getFileAttributeView

        public <V extends java.nio.file.attribute.FileAttributeView> V getFileAttributeView​(java.lang.Class<V> type)
        Specified by:
        getFileAttributeView in interface java.nio.file.SecureDirectoryStream<java.nio.file.Path>
      • getFileAttributeView

        public <V extends java.nio.file.attribute.FileAttributeView> V getFileAttributeView​(java.nio.file.Path path,
                                                                                            java.lang.Class<V> type,
                                                                                            java.nio.file.LinkOption... options)
        Specified by:
        getFileAttributeView in interface java.nio.file.SecureDirectoryStream<java.nio.file.Path>
      • delegate

        private java.nio.file.SecureDirectoryStream<java.nio.file.Path> delegate()