Class SpdxListedLicenseEmbeddedStore

java.lang.Object
org.spdx.storage.listedlicense.SpdxListedLicenseModelStore
org.spdx.sbom.gradle.utils.SpdxListedLicenseEmbeddedStore
All Implemented Interfaces:
AutoCloseable, org.spdx.storage.IModelStore, org.spdx.storage.listedlicense.IListedLicenseStore

public class SpdxListedLicenseEmbeddedStore extends org.spdx.storage.listedlicense.SpdxListedLicenseModelStore
Original Author: @goneall SpdxListedLicenseLocalStore

Model store for listend licenses using embedded JSON files in the resources/standard_licenses directory.

  • Nested Class Summary

    Nested classes/interfaces inherited from interface org.spdx.storage.IModelStore

    org.spdx.storage.IModelStore.IdType, org.spdx.storage.IModelStore.IModelStoreLock, org.spdx.storage.IModelStore.ModelUpdate
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
     
     
     
     
     

    Methods inherited from class org.spdx.storage.listedlicense.SpdxListedLicenseModelStore

    addValueToCollection, clearValueCollection, collectionContains, collectionSize, create, delete, enterCriticalSection, exists, getAllItems, getCaseSensisitiveId, getDocumentUris, getIdType, getLicenseListVersion, getNextId, getPropertyValueNames, getSpdxListedExceptionIds, getSpdxListedLicenseIds, getTypedValue, getValue, isCollectionMembersAssignableTo, isCollectionProperty, isPropertyValueAssignableTo, isSpdxListedExceptionId, isSpdxListedLicenseId, leaveCriticalSection, listedExceptionIdCaseSensitive, listedLicenseIdCaseSensitive, listValues, removeProperty, removeValueFromCollection, setValue

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • SpdxListedLicenseEmbeddedStore

      public SpdxListedLicenseEmbeddedStore() throws org.spdx.library.InvalidSPDXAnalysisException
      Throws:
      org.spdx.library.InvalidSPDXAnalysisException
  • Method Details

    • getTocInputStream

      public InputStream getTocInputStream() throws IOException
      Specified by:
      getTocInputStream in class org.spdx.storage.listedlicense.SpdxListedLicenseModelStore
      Throws:
      IOException
    • getLicenseInputStream

      public InputStream getLicenseInputStream(String licenseId) throws IOException
      Specified by:
      getLicenseInputStream in class org.spdx.storage.listedlicense.SpdxListedLicenseModelStore
      Throws:
      IOException
    • getExceptionTocInputStream

      public InputStream getExceptionTocInputStream() throws IOException
      Specified by:
      getExceptionTocInputStream in class org.spdx.storage.listedlicense.SpdxListedLicenseModelStore
      Throws:
      IOException
    • getExceptionInputStream

      public InputStream getExceptionInputStream(String exceptionId) throws IOException
      Specified by:
      getExceptionInputStream in class org.spdx.storage.listedlicense.SpdxListedLicenseModelStore
      Throws:
      IOException
    • close

      public void close() throws Exception
      Throws:
      Exception