Package org.spdx.storage.listedlicense
Class SpdxListedLicenseLocalStore
java.lang.Object
org.spdx.storage.listedlicense.SpdxListedLicenseModelStore
org.spdx.storage.listedlicense.SpdxListedLicenseLocalStore
- All Implemented Interfaces:
AutoCloseable,IModelStore,IListedLicenseStore
- Author:
- Gary O'Neall Model store for listed licenses using the JSON files in the resources/stdlicenses directory. Note the resources/stdlicenses must be on the build path.
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.spdx.storage.IModelStore
IModelStore.IdType, IModelStore.IModelStoreLock, 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
-
SpdxListedLicenseLocalStore
- Throws:
InvalidSPDXAnalysisException
-
-
Method Details
-
getTocInputStream
- Specified by:
getTocInputStreamin classSpdxListedLicenseModelStore- Returns:
- InputStream for the Table of Contents of the licenses formated in JSON SPDX
- Throws:
IOException
-
getLicenseInputStream
- Specified by:
getLicenseInputStreamin classSpdxListedLicenseModelStore- Returns:
- InputStream for a license formated in SPDX JSON
- Throws:
IOException
-
getExceptionTocInputStream
- Specified by:
getExceptionTocInputStreamin classSpdxListedLicenseModelStore- Returns:
- InputStream for the Table of Contents of the exceptions formated in JSON SPDX
- Throws:
IOException
-
getExceptionInputStream
- Specified by:
getExceptionInputStreamin classSpdxListedLicenseModelStore- Returns:
- InputStream for an exception formated in SPDX JSON
- Throws:
IOException
-
close
- Throws:
Exception
-