public class LicenseTextFormatWriter extends Object implements ILicenseFormatWriter
| Constructor and Description |
|---|
LicenseTextFormatWriter(File textFolder) |
| Modifier and Type | Method and Description |
|---|---|
File |
getTextFolder() |
void |
setTextFolder(File textFolder) |
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
|
public LicenseTextFormatWriter(File textFolder)
textFolder - Folder to write the text filespublic File getTextFolder()
public void setTextFolder(File textFolder)
textFolder - Folder to write the text filespublic void writeLicense(SpdxListedLicense license, boolean deprecated, String deprecatedVersion) throws IOException
ILicenseFormatWriterwriteLicense in interface ILicenseFormatWriterlicense - License to be addeddeprecated - True if deprecateddeprecatedVersion - License list version when the license was deprecated, null otherwiseIOExceptionpublic void writeToC()
throws IOException
ILicenseFormatWriterwriteToC in interface ILicenseFormatWriterIOExceptionpublic void writeException(LicenseException exception, boolean deprecated, String deprecatedVersion) throws IOException
writeException in interface ILicenseFormatWriterexception - Exception to be formatted and writtendeprecated - True if deprecateddeprecatedVersion - License list version when the license was deprecated, null otherwiseIOExceptionCopyright © 2018 Linux Foundation. All Rights Reserved.