Class LicenseHtmlFormatWriter
java.lang.Object
org.spdx.licenselistpublisher.licensegenerator.LicenseHtmlFormatWriter
- All Implemented Interfaces:
ILicenseFormatWriter
Generates HTML fragments with formatted license information
- Author:
- Gary O'Neall
-
Constructor Summary
ConstructorsConstructorDescriptionLicenseHtmlFormatWriter(String version, String releaseDate, File htmlFolder) -
Method Summary
Modifier and TypeMethodDescriptionstatic StringvoidsetHtmlFolder(File htmlFolder) voidwriteException(ListedExceptionContainer exceptionContainer) voidwriteLicense(ListedLicenseContainer licenseContainer, boolean deprecated, String deprecatedVersion) Formats and writes a specific licensevoidwriteToC()Write the Table of Contents file for the format if applicable
-
Constructor Details
-
LicenseHtmlFormatWriter
-
-
Method Details
-
getHtmlFolder
- Returns:
- the htmlFolder
-
setHtmlFolder
- Parameters:
htmlFolder- the htmlFolder to set
-
writeLicense
public void writeLicense(ListedLicenseContainer licenseContainer, boolean deprecated, String deprecatedVersion) throws IOException, org.spdx.core.InvalidSPDXAnalysisException Description copied from interface:ILicenseFormatWriterFormats and writes a specific license- Specified by:
writeLicensein interfaceILicenseFormatWriter- Parameters:
licenseContainer- License to be addeddeprecated- True if deprecateddeprecatedVersion- License list version when the license was deprecated, null otherwise- Throws:
IOExceptionorg.spdx.core.InvalidSPDXAnalysisException
-
formLicenseHTMLFileName
-
writeToC
Description copied from interface:ILicenseFormatWriterWrite the Table of Contents file for the format if applicable- Specified by:
writeToCin interfaceILicenseFormatWriter- Throws:
IOException
-
writeException
public void writeException(ListedExceptionContainer exceptionContainer) throws IOException, org.spdx.core.InvalidSPDXAnalysisException - Specified by:
writeExceptionin interfaceILicenseFormatWriter- Parameters:
exceptionContainer- Exception to be formatted and written- Throws:
IOExceptionorg.spdx.core.InvalidSPDXAnalysisException
-