Class AbstractBinaryModuleInfoParser

    • Field Detail

      • MRJAR_DESCRIPTOR

        private static final java.util.regex.Pattern MRJAR_DESCRIPTOR
    • Constructor Detail

      • AbstractBinaryModuleInfoParser

        AbstractBinaryModuleInfoParser()
    • Method Detail

      • getModuleDescriptor

        public JavaModuleDescriptor getModuleDescriptor​(java.nio.file.Path modulePath)
                                                 throws java.io.IOException
        Description copied from interface: ModuleInfoParser
        Extracts the name from the module-info file
        Specified by:
        getModuleDescriptor in interface ModuleInfoParser
        Parameters:
        modulePath - the path to the module-info.class
        Returns:
        the module descriptor
        Throws:
        java.io.IOException - when the file could not be parsed
      • parse

        abstract JavaModuleDescriptor parse​(java.io.InputStream in)
                                     throws java.io.IOException
        Throws:
        java.io.IOException