Package org.apache.ivy.plugins.parser
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 org.apache.ivy.plugins.parser.AbstractModuleDescriptorParser
AbstractModuleDescriptorParser.AbstractParser
-
Method Summary
Modifier and TypeMethodDescriptionboolean
void
addParser
(ModuleDescriptorParser parser) Adds a the given parser to this registry.parseDescriptor
(ParserSettings settings, URL descriptorURL, Resource res, boolean validate) void
toIvyFile
(InputStream is, Resource res, File destFile, ModuleDescriptor md) Convert a module descriptor to an ivy file.Methods inherited from class org.apache.ivy.plugins.parser.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:
ParseException
IOException
-
accept
-
toIvyFile
public void toIvyFile(InputStream is, Resource res, File destFile, ModuleDescriptor md) throws ParseException, 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 resourceres
- ResourcedestFile
- Filemd
- ModuleDescriptor- Throws:
ParseException
- if something goes wrongIOException
- if something goes wrong
-