Class MetaFS

  • All Implemented Interfaces:
    java.io.Closeable, java.lang.AutoCloseable
    Direct Known Subclasses:
    LayerFS, VirtFS

    public abstract class MetaFS
    extends java.nio.file.FileSystem
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected boolean isReadOnly  
    • Constructor Summary

      Constructors 
      Constructor Description
      MetaFS()  
    • Method Summary

      Modifier and Type Method Description
      void checkAccess​(java.nio.file.Path path, java.nio.file.AccessMode[] modes)
      This should be implemented per filesystem, using the signature of FileSystemProvider.checkAccess(Path, AccessMode[])
      void close()  
      abstract java.lang.String getName()  
      java.nio.file.Path getPath​(java.lang.String first, java.lang.String... more)  
      java.nio.file.PathMatcher getPathMatcher​(java.lang.String syntaxAndPattern)  
      java.nio.file.Path getRootPath()  
      java.nio.file.attribute.UserPrincipalLookupService getUserPrincipalLookupService()  
      boolean isOpen()  
      boolean isReadOnly()  
      abstract 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.channels.FileChannel newFileChannel​(java.nio.file.Path path, java.util.Set<? extends java.nio.file.OpenOption> options, java.nio.file.attribute.FileAttribute<?>... attrs)  
      java.io.InputStream newInputStream​(java.nio.file.Path path, java.nio.file.OpenOption... options)  
      java.nio.file.WatchService newWatchService()  
      java.lang.String toString()  
      • Methods inherited from class java.nio.file.FileSystem

        getFileStores, getRootDirectories, getSeparator, provider, supportedFileAttributeViews
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Field Detail

      • isReadOnly

        protected boolean isReadOnly
    • Constructor Detail

      • MetaFS

        public MetaFS()
    • Method Detail

      • close

        public void close()
                   throws java.io.IOException
        Specified by:
        close in interface java.lang.AutoCloseable
        Specified by:
        close in interface java.io.Closeable
        Specified by:
        close in class java.nio.file.FileSystem
        Throws:
        java.io.IOException
      • isOpen

        public boolean isOpen()
        Specified by:
        isOpen in class java.nio.file.FileSystem
      • isReadOnly

        public boolean isReadOnly()
        Specified by:
        isReadOnly in class java.nio.file.FileSystem
      • getPathMatcher

        public java.nio.file.PathMatcher getPathMatcher​(java.lang.String syntaxAndPattern)
        Specified by:
        getPathMatcher in class java.nio.file.FileSystem
      • getUserPrincipalLookupService

        public java.nio.file.attribute.UserPrincipalLookupService getUserPrincipalLookupService()
        Specified by:
        getUserPrincipalLookupService in class java.nio.file.FileSystem
      • newWatchService

        public java.nio.file.WatchService newWatchService()
                                                   throws java.io.IOException
        Specified by:
        newWatchService in class java.nio.file.FileSystem
        Throws:
        java.io.IOException
      • getRootPath

        public java.nio.file.Path getRootPath()
      • getPath

        public java.nio.file.Path getPath​(java.lang.String first,
                                          java.lang.String... more)
        Specified by:
        getPath in class java.nio.file.FileSystem
      • checkAccess

        public void checkAccess​(java.nio.file.Path path,
                                java.nio.file.AccessMode[] modes)
                         throws java.io.IOException
        This should be implemented per filesystem, using the signature of FileSystemProvider.checkAccess(Path, AccessMode[])
        Throws:
        java.io.IOException
      • newFileChannel

        public java.nio.channels.FileChannel newFileChannel​(java.nio.file.Path path,
                                                            java.util.Set<? extends java.nio.file.OpenOption> options,
                                                            java.nio.file.attribute.FileAttribute<?>... attrs)
                                                     throws java.io.IOException
        Throws:
        java.io.IOException
      • newInputStream

        public java.io.InputStream newInputStream​(java.nio.file.Path path,
                                                  java.nio.file.OpenOption... options)
                                           throws java.io.IOException
        Throws:
        java.io.IOException
      • newByteChannel

        public abstract 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
        Throws:
        java.io.IOException
      • getName

        public abstract java.lang.String getName()
      • toString

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