Class ManifestModuleNameExtractor

  • All Implemented Interfaces:
    ModuleNameExtractor

    class ManifestModuleNameExtractor
    extends java.lang.Object
    implements ModuleNameExtractor
    Extracts the name of the module by reading the Automatic-Module-Name attribute of the manifest file
    Since:
    1.0.0
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String extract​(java.nio.file.Path file)  
      private java.util.jar.Manifest extractManifest​(java.io.File file)  
      • Methods inherited from class java.lang.Object

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

      • ManifestModuleNameExtractor

        ManifestModuleNameExtractor()
    • Method Detail

      • extract

        public java.lang.String extract​(java.nio.file.Path file)
                                 throws java.io.IOException
        Specified by:
        extract in interface ModuleNameExtractor
        Throws:
        java.io.IOException
      • extractManifest

        private java.util.jar.Manifest extractManifest​(java.io.File file)
                                                throws java.io.IOException
        Throws:
        java.io.IOException