Class ModulePathResolver

  • All Implemented Interfaces:
    java.lang.AutoCloseable

    public class ModulePathResolver
    extends java.lang.Object
    implements java.lang.AutoCloseable
    Resolves modulepath URIs from ZIP or JAR files, or from directory paths.

    NOTE: Do not initialize two resolvers for the same jar or zip file. Instead, share the same resolver for that jar or zip file.

    • Constructor Detail

      • ModulePathResolver

        public ModulePathResolver​(java.lang.Iterable<java.nio.file.Path> modulePath)
    • Method Detail

      • resolve

        public java.nio.file.Path resolve​(java.net.URI uri)
                                   throws java.io.IOException
        Throws:
        java.io.IOException
      • hasElement

        public boolean hasElement​(java.net.URI elementUri)
      • close

        public void close()
        Specified by:
        close in interface java.lang.AutoCloseable