Class ModuleDescriptorParserRegistry
java.lang.Object
org.apache.ivy.plugins.parser.AbstractModuleDescriptorParser
org.apache.ivy.plugins.parser.ModuleDescriptorParserRegistry
- All Implemented Interfaces:
ModuleDescriptorParser
-
Nested Class Summary
Nested classes/interfaces inherited from class AbstractModuleDescriptorParser
AbstractModuleDescriptorParser.AbstractParser -
Method Summary
Modifier and TypeMethodDescriptionbooleanvoidaddParser(ModuleDescriptorParser parser) Adds a the given parser to this registry.parseDescriptor(ParserSettings settings, URL descriptorURL, Resource res, boolean validate) voidtoIvyFile(InputStream is, Resource res, File destFile, ModuleDescriptor md) Convert a module descriptor to an ivy file.Methods inherited from class AbstractModuleDescriptorParser
getMetadataArtifact, getType, parseDescriptor
-
Method Details
-
getInstance
-
addParser
Adds a the given parser to this registry.- Parameters:
parser- the parser to add
-
getParsers
-
getParser
-
parseDescriptor
public ModuleDescriptor parseDescriptor(ParserSettings settings, URL descriptorURL, Resource res, boolean validate) throws ParseException, IOException - Throws:
ParseExceptionIOException
-
accept
-
toIvyFile
public void toIvyFile(InputStream is, Resource res, File destFile, ModuleDescriptor md) throws ParseException, IOException Description copied from interface:ModuleDescriptorParserConvert 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 resourceres- ResourcedestFile- Filemd- ModuleDescriptor- Throws:
ParseException- if something goes wrongIOException- if something goes wrong
-