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