@ThreadSafe public class PomParser extends Object
| Constructor and Description |
|---|
PomParser() |
| Modifier and Type | Method and Description |
|---|---|
Model |
parse(File file)
Parses the given xml file and returns a Model object containing only the
fields dependency-check requires.
|
Model |
parse(InputStream inputStream)
Parses the given XML file and returns a Model object containing only the
fields dependency-check requires.
|
Model |
parseWithoutDocTypeCleanup(File file)
Parses the given xml file and returns a Model object containing only the
fields dependency-check requires.
|
Model |
parseWithoutDocTypeCleanup(InputStream inputStream)
Parses the given XML file and returns a Model object containing only the
fields dependency-check requires.
|
public Model parse(File file) throws PomParseException
file - a pom.xmlPomParseException - thrown if the xml file cannot be parsedpublic Model parseWithoutDocTypeCleanup(File file) throws PomParseException
file - a pom.xmlPomParseException - thrown if the xml file cannot be parsedpublic Model parse(InputStream inputStream) throws PomParseException
inputStream - an InputStream containing suppression ruesPomParseException - if the XML cannot be parsedpublic Model parseWithoutDocTypeCleanup(InputStream inputStream) throws PomParseException
inputStream - an InputStream containing suppression ruesPomParseException - if the XML cannot be parsedCopyright © 2012–2020 OWASP. All rights reserved.