Class VirtFS
- java.lang.Object
-
- java.nio.file.FileSystem
-
- io.virtdata.docsys.metafs.core.MetaFS
-
- io.virtdata.docsys.metafs.fs.virtual.VirtFS
-
-
Field Summary
Fields Modifier and Type Field Description protected static org.slf4j.Loggerloggerjava.util.function.Function<MetaPath,java.nio.file.Path>metaToSysFuncprotected VirtFSProviderproviderjava.util.function.Function<java.nio.file.Path,MetaPath>sysToMetaFunc-
Fields inherited from class io.virtdata.docsys.metafs.core.MetaFS
isReadOnly
-
-
Constructor Summary
Constructors Constructor Description VirtFS(java.nio.file.Path outerPath, java.lang.String name)
-
Method Summary
Modifier and Type Method Description 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)java.lang.Iterable<java.nio.file.FileStore>getFileStores()java.lang.StringgetName()protected java.nio.file.PathgetOuterMount()java.nio.file.PathgetPath(java.lang.String first, java.lang.String... more)java.nio.file.PathMatchergetPathMatcher(java.lang.String syntaxAndPattern)java.lang.Iterable<java.nio.file.Path>getRootDirectories()java.lang.StringgetSeparator()java.nio.file.attribute.UserPrincipalLookupServicegetUserPrincipalLookupService()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(MetaPath metapath, java.nio.file.DirectoryStream.Filter<? super java.nio.file.Path> filter)java.nio.file.WatchServicenewWatchService()java.nio.file.spi.FileSystemProviderprovider()protected java.nio.file.attribute.BasicFileAttributesreadAttributes(java.nio.file.Path path, java.lang.Class<java.nio.file.attribute.BasicFileAttributes> type, java.nio.file.LinkOption[] options)protected java.util.Map<java.lang.String,java.lang.Object>readAttributes(java.nio.file.Path path, java.lang.String attributes, java.nio.file.LinkOption[] options)VirtFSsetSysDefaultPath(java.nio.file.Path sysDefaultPath)java.util.Set<java.lang.String>supportedFileAttributeViews()java.lang.StringtoString()-
Methods inherited from class io.virtdata.docsys.metafs.core.MetaFS
close, getRootPath, isOpen, isReadOnly, newFileChannel, newInputStream
-
-
-
-
Field Detail
-
logger
protected static final org.slf4j.Logger logger
-
provider
protected final VirtFSProvider provider
-
metaToSysFunc
public final java.util.function.Function<MetaPath,java.nio.file.Path> metaToSysFunc
-
sysToMetaFunc
public final java.util.function.Function<java.nio.file.Path,MetaPath> sysToMetaFunc
-
-
Method Detail
-
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:
newByteChannelin classMetaFS- Throws:
java.io.IOException
-
setSysDefaultPath
public VirtFS setSysDefaultPath(java.nio.file.Path sysDefaultPath)
-
provider
public java.nio.file.spi.FileSystemProvider provider()
- Specified by:
providerin classjava.nio.file.FileSystem
-
getSeparator
public java.lang.String getSeparator()
- Specified by:
getSeparatorin classjava.nio.file.FileSystem
-
getRootDirectories
public java.lang.Iterable<java.nio.file.Path> getRootDirectories()
- Specified by:
getRootDirectoriesin classjava.nio.file.FileSystem
-
getFileStores
public java.lang.Iterable<java.nio.file.FileStore> getFileStores()
- Specified by:
getFileStoresin classjava.nio.file.FileSystem
-
supportedFileAttributeViews
public java.util.Set<java.lang.String> supportedFileAttributeViews()
- Specified by:
supportedFileAttributeViewsin classjava.nio.file.FileSystem
-
getPath
public java.nio.file.Path getPath(java.lang.String first, java.lang.String... more)
-
getPathMatcher
public java.nio.file.PathMatcher getPathMatcher(java.lang.String syntaxAndPattern)
- Overrides:
getPathMatcherin classMetaFS
-
getUserPrincipalLookupService
public java.nio.file.attribute.UserPrincipalLookupService getUserPrincipalLookupService()
- Overrides:
getUserPrincipalLookupServicein classMetaFS
-
newWatchService
public java.nio.file.WatchService newWatchService() throws java.io.IOException- Overrides:
newWatchServicein classMetaFS- Throws:
java.io.IOException
-
readAttributes
protected java.nio.file.attribute.BasicFileAttributes readAttributes(java.nio.file.Path path, java.lang.Class<java.nio.file.attribute.BasicFileAttributes> type, java.nio.file.LinkOption[] options) throws java.io.IOException- Throws:
java.io.IOException
-
readAttributes
protected 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- 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)
-
newDirectoryStream
public java.nio.file.DirectoryStream<java.nio.file.Path> newDirectoryStream(MetaPath metapath, java.nio.file.DirectoryStream.Filter<? super java.nio.file.Path> filter) throws java.io.IOException
- 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 classMetaFS- Throws:
java.io.IOException
-
getOuterMount
protected java.nio.file.Path getOuterMount()
-
-