public class SPDXDocumentFactory extends Object
| Constructor and Description |
|---|
SPDXDocumentFactory() |
| Modifier and Type | Method and Description |
|---|---|
static SPDXDocument |
createLegacySpdxDocument(InputStream input,
String baseUri,
String fileType) |
static SPDXDocument |
createLegacySpdxDocument(org.apache.jena.rdf.model.Model model)
Create a new Legacy SPDX Document populating the data from the existing model
Legacy SPDX documents only specification version 1.2 features
|
static SPDXDocument |
createLegacySpdxDocument(String fileNameOrUrl)
Create an Legacy SPDX Document from a file - Legacy SPDX documents only specification version 1.2 features
|
static SpdxDocument |
createSpdxDocument(InputStream input,
String baseUri,
String fileType) |
static SpdxDocument |
createSpdxDocument(org.apache.jena.rdf.model.Model model)
Create a new SPDX Document populating the data from the existing model
|
static SpdxDocument |
createSpdxDocument(String fileNameOrUrl)
Create an SPDX Document from a file
|
public static SpdxDocument createSpdxDocument(org.apache.jena.rdf.model.Model model) throws InvalidSPDXAnalysisException
model - InvalidSPDXAnalysisExceptionpublic static SPDXDocument createLegacySpdxDocument(org.apache.jena.rdf.model.Model model) throws InvalidSPDXAnalysisException
model - InvalidSPDXAnalysisExceptionpublic static SPDXDocument createLegacySpdxDocument(String fileNameOrUrl) throws IOException, InvalidSPDXAnalysisException
fileNameOrUrl - local file name or Url containing the SPDX data. Can be in RDF/XML or RDFa formatIOExceptionInvalidSPDXAnalysisExceptionpublic static SpdxDocument createSpdxDocument(String fileNameOrUrl) throws IOException, InvalidSPDXAnalysisException
fileNameOrUrl - local file name or Url containing the SPDX data. Can be in RDF/XML or RDFa formatIOExceptionInvalidSPDXAnalysisExceptionpublic static SpdxDocument createSpdxDocument(InputStream input, String baseUri, String fileType) throws InvalidSPDXAnalysisException
InvalidSPDXAnalysisExceptionpublic static SPDXDocument createLegacySpdxDocument(InputStream input, String baseUri, String fileType) throws InvalidSPDXAnalysisException
InvalidSPDXAnalysisExceptionCopyright © 2017 Linux Foundation. All Rights Reserved.