Class ModuleDescriptorParserRegistry

    • Method Detail

      • addParser

        public void addParser​(ModuleDescriptorParser parser)
        Adds a the given parser to this registry.
        Parameters:
        parser - the parser to add
      • parseDescriptor

        public ModuleDescriptor parseDescriptor​(ParserSettings settings,
                                                java.net.URL descriptorURL,
                                                Resource res,
                                                boolean validate)
                                         throws java.text.ParseException,
                                                java.io.IOException
        Throws:
        java.text.ParseException
        java.io.IOException
      • accept

        public boolean accept​(Resource res)
      • toIvyFile

        public void toIvyFile​(java.io.InputStream is,
                              Resource res,
                              java.io.File destFile,
                              ModuleDescriptor md)
                       throws java.text.ParseException,
                              java.io.IOException
        Description copied from interface: ModuleDescriptorParser
        Convert a module descriptor to an ivy file. This method MUST close the given input stream when job is finished
        Parameters:
        is - input stream with opened on original module descriptor resource
        res - Resource
        destFile - File
        md - ModuleDescriptor
        Throws:
        java.text.ParseException - if something goes wrong
        java.io.IOException - if something goes wrong