Class SpdxViewer

java.lang.Object
org.spdx.tools.SpdxViewer

public class SpdxViewer extends Object
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:
  • 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 Details

    • SpdxViewer

      public SpdxViewer()
  • Method Details

    • main

      public static void main(String[] args)
      Pretty Printer for an SPDX Document Main entry point for the SpdxViewer tool. Delegates to run(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