Class FileSystemJarPathService

  • All Implemented Interfaces:
    FileSystemPathService

    public class FileSystemJarPathService
    extends java.lang.Object
    implements FileSystemPathService
    Gets the actual path for a jar file system
    Author:
    Tobias Soloschenko
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static MetaDataKey<java.util.Map<java.lang.String,​java.nio.file.FileSystem>> FILE_SYSTEM_META_DATA_KEY
      The key for the file system meta data
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.nio.file.Path getPath​(java.net.URI uri, java.util.Map<java.lang.String,​java.lang.String> env)
      Gets the actual path for a specific file system to work on
      boolean isResponsible​(java.net.URI uri)
      Checks if the file system path service is responsible to handle the given URI
      • Methods inherited from class java.lang.Object

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

      • FILE_SYSTEM_META_DATA_KEY

        public static final MetaDataKey<java.util.Map<java.lang.String,​java.nio.file.FileSystem>> FILE_SYSTEM_META_DATA_KEY
        The key for the file system meta data
    • Constructor Detail

      • FileSystemJarPathService

        public FileSystemJarPathService()
    • Method Detail

      • getPath

        public java.nio.file.Path getPath​(java.net.URI uri,
                                          java.util.Map<java.lang.String,​java.lang.String> env)
        Description copied from interface: FileSystemPathService
        Gets the actual path for a specific file system to work on
        Specified by:
        getPath in interface FileSystemPathService
        Parameters:
        uri - the uri to get the path from
        env - environment variables to be applied to the file system
        Returns:
        the actual path or null if the implementation is not responsible
      • isResponsible

        public boolean isResponsible​(java.net.URI uri)
        Description copied from interface: FileSystemPathService
        Checks if the file system path service is responsible to handle the given URI
        Specified by:
        isResponsible in interface FileSystemPathService
        Parameters:
        uri - the URI to detect if the file system path service is responsible
        Returns:
        if the file system path service is responsible to handle the given URI