Class VFSFileSystem

    • Constructor Summary

      Constructors 
      Constructor Description
      VFSFileSystem()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String getBasePath​(java.lang.String path)
      Gets the base path of the given path, for example a directory for a file.
      java.lang.String getFileName​(java.lang.String path)
      Gets the file name of the given path.
      java.io.InputStream getInputStream​(java.net.URL url)
      Gets an input stream for a URL.
      java.io.OutputStream getOutputStream​(java.net.URL url)
      Gets an output stream for a URL.
      java.lang.String getPath​(java.io.File file, java.net.URL url, java.lang.String basePath, java.lang.String fileName)
      Gets a path string for the given input where some values may be null.
      java.net.URL getURL​(java.lang.String basePath, java.lang.String file)
      Gets a URL for a base path and file name.
      java.net.URL locateFromURL​(java.lang.String basePath, java.lang.String fileName)
      Locates a URL for a base path and file name.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • VFSFileSystem

        public VFSFileSystem()
    • Method Detail

      • getBasePath

        public java.lang.String getBasePath​(java.lang.String path)
        Description copied from class: FileSystem
        Gets the base path of the given path, for example a directory for a file.
        Overrides:
        getBasePath in class DefaultFileSystem
        Parameters:
        path - the source path.
        Returns:
        the base path.
      • getFileName

        public java.lang.String getFileName​(java.lang.String path)
        Description copied from class: FileSystem
        Gets the file name of the given path.
        Overrides:
        getFileName in class DefaultFileSystem
        Parameters:
        path - the source path.
        Returns:
        the file name.
      • getPath

        public java.lang.String getPath​(java.io.File file,
                                        java.net.URL url,
                                        java.lang.String basePath,
                                        java.lang.String fileName)
        Description copied from class: FileSystem
        Gets a path string for the given input where some values may be null.

        The implementation decides on which argument take precedence.

        Overrides:
        getPath in class DefaultFileSystem
        Parameters:
        file - A file.
        url - A URL.
        basePath - A base path string.
        fileName - A file name.
        Returns:
        A path string.
      • getURL

        public java.net.URL getURL​(java.lang.String basePath,
                                   java.lang.String file)
                            throws java.net.MalformedURLException
        Description copied from class: FileSystem
        Gets a URL for a base path and file name.
        Overrides:
        getURL in class DefaultFileSystem
        Parameters:
        basePath - The base path.
        file - The file name.
        Returns:
        a URL.
        Throws:
        java.net.MalformedURLException - if a problem occurs creating the URL.
      • locateFromURL

        public java.net.URL locateFromURL​(java.lang.String basePath,
                                          java.lang.String fileName)
        Description copied from class: FileSystem
        Locates a URL for a base path and file name.
        Overrides:
        locateFromURL in class DefaultFileSystem
        Parameters:
        basePath - The base path.
        fileName - The file name.
        Returns:
        a URL.