Package org.spdx.sbom.gradle.utils
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 -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()getExceptionInputStream(String exceptionId) getLicenseInputStream(String licenseId) 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
-
Constructor Details
-
SpdxListedLicenseEmbeddedStore
public SpdxListedLicenseEmbeddedStore() throws org.spdx.library.InvalidSPDXAnalysisException- Throws:
org.spdx.library.InvalidSPDXAnalysisException
-
-
Method Details
-
getTocInputStream
- Specified by:
getTocInputStreamin classorg.spdx.storage.listedlicense.SpdxListedLicenseModelStore- Throws:
IOException
-
getLicenseInputStream
- Specified by:
getLicenseInputStreamin classorg.spdx.storage.listedlicense.SpdxListedLicenseModelStore- Throws:
IOException
-
getExceptionTocInputStream
- Specified by:
getExceptionTocInputStreamin classorg.spdx.storage.listedlicense.SpdxListedLicenseModelStore- Throws:
IOException
-
getExceptionInputStream
- Specified by:
getExceptionInputStreamin classorg.spdx.storage.listedlicense.SpdxListedLicenseModelStore- Throws:
IOException
-
close
- Throws:
Exception
-