Class RenderFS

  • All Implemented Interfaces:
    java.io.Closeable, java.lang.AutoCloseable

    public class RenderFS
    extends VirtFS
    The RenderFS filesystem will pretend that a rendered form of some file types already exist in the filesystem, so long as the necessary input file type and rendererTypes are present. Directory listings, file access, and everything else that would normally work for these files will work. RenderFS will create in-memory versions of these files as needed. The rendered version of files automatically take on all the attributes of their upstream file format, except for file size and file data.
    • Constructor Detail

      • RenderFS

        public RenderFS​(java.nio.file.FileSystem layer,
                        java.lang.String name)
      • RenderFS

        public RenderFS​(java.nio.file.Path wrapped,
                        java.lang.String name)
      • RenderFS

        public RenderFS​(java.net.URI baseUri,
                        java.lang.String name)
    • Method Detail

      • getRenderers

        public Renderers getRenderers()
      • newDirectoryStream

        public java.nio.file.DirectoryStream<java.nio.file.Path> newDirectoryStream​(java.nio.file.DirectoryStream<java.nio.file.Path> paths)
      • 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
        Overrides:
        newByteChannel in class VirtFS
        Throws:
        java.io.IOException
      • readAttributes

        public java.nio.file.attribute.BasicFileAttributes readAttributes​(java.nio.file.Path path,
                                                                          java.lang.Class type,
                                                                          java.nio.file.LinkOption... options)
                                                                   throws java.io.IOException
        Overrides:
        readAttributes in class VirtFS
        Throws:
        java.io.IOException
      • readAttributes

        public java.util.Map<java.lang.String,​java.lang.Object> readAttributes​(java.nio.file.Path path,
                                                                                     java.lang.String attributes,
                                                                                     java.nio.file.LinkOption[] options)
                                                                              throws java.io.IOException
        Overrides:
        readAttributes in class VirtFS
        Throws:
        java.io.IOException
      • checkAccess

        public void checkAccess​(java.nio.file.Path path,
                                java.nio.file.AccessMode... modes)
                         throws java.io.IOException
        Description copied from class: MetaFS
        This should be implemented per filesystem, using the signature of FileSystemProvider.checkAccess(Path, AccessMode[])
        Overrides:
        checkAccess in class VirtFS
        Throws:
        java.io.IOException
      • getFileAttributeView

        public java.nio.file.attribute.FileAttributeView getFileAttributeView​(java.nio.file.Path path,
                                                                              java.lang.Class type,
                                                                              java.nio.file.LinkOption[] options)
        Overrides:
        getFileAttributeView in class VirtFS
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class VirtFS