public class SPDXDocumentFactory extends Object
| Constructor and Description |
|---|
SPDXDocumentFactory() |
| Modifier and Type | Method and Description |
|---|---|
static SPDXDocument |
createSpdxDocument(InputStream input,
String baseUri,
String fileType) |
static SPDXDocument |
createSpdxDocument(com.hp.hpl.jena.rdf.model.Model model)
Create a new SPDX Document populating the data from the existing model
|
static SPDXDocument |
creatSpdxDocument(String fileNameOrUrl)
Create an SPDX Document from a file
|
public static SPDXDocument createSpdxDocument(com.hp.hpl.jena.rdf.model.Model model) throws InvalidSPDXAnalysisException
model - InvalidSPDXAnalysisExceptionpublic static SPDXDocument creatSpdxDocument(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
InvalidSPDXAnalysisExceptionCopyright © 2014 Linux Foundation. All Rights Reserved.