Class LicensesFileReader
java.lang.Object
org.wildfly.maven.plugins.licenses.LicensesFileReader
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionparseLicenseSummary(InputStream licSummaryIS) Read a *-licenses.xml from an input stream into a ProjectInfo object.
-
Constructor Details
-
LicensesFileReader
public LicensesFileReader()
-
-
Method Details
-
parseLicenseSummary
public ProjectInfo parseLicenseSummary(InputStream licSummaryIS) throws IOException, ParserConfigurationException, SAXException Read a *-licenses.xml from an input stream into a ProjectInfo object.- Parameters:
licSummaryIS- Input stream containing the license data- Returns:
- ProjectInfo (a list of ProjectLicenseInfo objects and a list of KnownLicenseInfo objects)
- Throws:
IOException- if there is a problem reading the InputStreamParserConfigurationException- if there is a problem parsing the XML streamSAXException- if there is a problem parsing the XML stream
-