public interface ILicenseFormatWriter
| Modifier and Type | Method and Description |
|---|---|
void |
writeException(LicenseException exception,
boolean deprecated,
String deprecatedVersion) |
void |
writeLicense(SpdxListedLicense license,
boolean deprecated,
String deprecatedVersion)
Formats and writes a specific license
|
void |
writeToC()
Write the Table of Contents file for the format if applicable
|
void writeLicense(SpdxListedLicense license, boolean deprecated, String deprecatedVersion) throws IOException, LicenseGeneratorException
license - License to be addeddeprecated - True if deprecateddeprecatedVersion - License list version when the license was deprecated, null otherwiseIOExceptionLicenseGeneratorExceptionvoid writeToC()
throws IOException,
LicenseGeneratorException
IOExceptionLicenseGeneratorExceptionvoid writeException(LicenseException exception, boolean deprecated, String deprecatedVersion) throws IOException, LicenseGeneratorException, InvalidLicenseTemplateException
exception - Exception to be formatted and writtendeprecated - True if deprecateddeprecatedVersion - License list version when the license was deprecated, null otherwiseIOExceptionLicenseGeneratorExceptionInvalidLicenseTemplateExceptionCopyright © 2018 Linux Foundation. All Rights Reserved.