Package org.spdx.tools
Class SpdxViewer
java.lang.Object
org.spdx.tools.SpdxViewer
Simple pretty printer for SPDX RDF XML files. Writes output to System.out.
Usage: PrettyPrinter SPDXRdfXMLFile > textFile where SPDXRdfXMLFile is a
valid SPDX RDF XML file
Exit codes:
Exit codes:
- 0 - the document was pretty-printed successfully
- 1 - the document could not be read, parsed, or printed
- 2 - the command was invoked incorrectly (missing/invalid arguments)
- Version:
- 0.1
- Author:
- Gary O'Neall
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
SpdxViewer
public SpdxViewer()
-
-
Method Details
-
main
Pretty Printer for an SPDX Document Main entry point for the SpdxViewer tool. Delegates torun(String[])and terminates the JVM with its exit status.- Parameters:
args- args[0] SPDX file path; args[1] [RDFXML|JSON|XLS|XLSX|YAML|TAG] an optional file type - if not present, file type of the to file will be used
-