Class RenderFS
- java.lang.Object
-
- java.nio.file.FileSystem
-
- io.virtdata.docsys.metafs.core.MetaFS
-
- io.virtdata.docsys.metafs.fs.virtual.VirtFS
-
- io.virtdata.docsys.metafs.fs.renderfs.fs.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.
-
-
Field Summary
-
Fields inherited from class io.virtdata.docsys.metafs.fs.virtual.VirtFS
logger, metaToSysFunc, sysToMetaFunc
-
Fields inherited from class io.virtdata.docsys.metafs.core.MetaFS
isReadOnly
-
-
Method Summary
Modifier and Type Method Description voidaddRenderers(FileContentRenderer... rendererType)voidcheckAccess(java.nio.file.Path path, java.nio.file.AccessMode... modes)This should be implemented per filesystem, using the signature ofFileSystemProvider.checkAccess(Path, AccessMode[])java.nio.file.attribute.FileAttributeViewgetFileAttributeView(java.nio.file.Path path, java.lang.Class type, java.nio.file.LinkOption[] options)RenderersgetRenderers()java.nio.channels.SeekableByteChannelnewByteChannel(java.nio.file.Path path, java.util.Set<? extends java.nio.file.OpenOption> options, java.nio.file.attribute.FileAttribute<?>... attrs)java.nio.file.DirectoryStream<java.nio.file.Path>newDirectoryStream(java.nio.file.DirectoryStream<java.nio.file.Path> paths)RenderFSProviderprovider()java.nio.file.attribute.BasicFileAttributesreadAttributes(java.nio.file.Path path, java.lang.Class type, java.nio.file.LinkOption... options)java.util.Map<java.lang.String,java.lang.Object>readAttributes(java.nio.file.Path path, java.lang.String attributes, java.nio.file.LinkOption[] options)java.lang.StringtoString()-
Methods inherited from class io.virtdata.docsys.metafs.fs.virtual.VirtFS
getFileStores, getName, getOuterMount, getPath, getPathMatcher, getRootDirectories, getSeparator, getUserPrincipalLookupService, newDirectoryStream, newWatchService, setSysDefaultPath, supportedFileAttributeViews
-
Methods inherited from class io.virtdata.docsys.metafs.core.MetaFS
close, getRootPath, isOpen, isReadOnly, newFileChannel, newInputStream
-
-
-
-
Method Detail
-
getRenderers
public Renderers getRenderers()
-
addRenderers
public void addRenderers(FileContentRenderer... rendererType)
-
provider
public RenderFSProvider provider()
-
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:
newByteChannelin classVirtFS- 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:
readAttributesin classVirtFS- 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:
readAttributesin classVirtFS- Throws:
java.io.IOException
-
checkAccess
public void checkAccess(java.nio.file.Path path, java.nio.file.AccessMode... modes) throws java.io.IOExceptionDescription copied from class:MetaFSThis should be implemented per filesystem, using the signature ofFileSystemProvider.checkAccess(Path, AccessMode[])- Overrides:
checkAccessin classVirtFS- 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:
getFileAttributeViewin classVirtFS
-
-