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(org.spdx.rdfparser.license.ListedLicenseException exception) |
void |
writeLicense(org.spdx.rdfparser.license.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(org.spdx.rdfparser.license.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(org.spdx.rdfparser.license.ListedLicenseException exception)
throws IOException
writeException in interface ILicenseFormatWriterexception - Exception to be formatted and writtenIOExceptionCopyright © 2018 Linux Foundation. All Rights Reserved.