Class SpdxListedLicenseLocalStore
java.lang.Object
org.spdx.storage.listedlicense.SpdxListedLicenseModelStore
org.spdx.storage.listedlicense.SpdxListedLicenseLocalStore
- All Implemented Interfaces:
AutoCloseable,org.spdx.storage.IModelStore,IListedLicenseStore
Model store for listed licenses using the JSON files in the resources/stdlicenses directory.
Note the resources/stdlicenses must be on the build path.
- Author:
- Gary O'Neall
-
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 -
Field Summary
Fields inherited from class org.spdx.storage.listedlicense.SpdxListedLicenseModelStore
LISTED_LICENSE_NAMESPACE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetExceptionInputStream(String exceptionId) getLicenseInputStream(String licenseId) Methods inherited from class org.spdx.storage.listedlicense.SpdxListedLicenseModelStore
addValueToCollection, clearValueCollection, close, collectionContains, collectionSize, create, delete, enterCriticalSection, exists, getAllItems, getCaseSensitiveId, getIdType, getLicenseListReleaseDate, getLicenseListVersion, getListedLicenseCreationInfo, getNextId, getPropertyValueDescriptors, getSpdxListedExceptionIds, getSpdxListedLicenseIds, getTypedValue, getValue, isAnon, isCollectionMembersAssignableTo, isCollectionProperty, isPropertyValueAssignableTo, isSpdxListedExceptionId, isSpdxListedLicenseId, leaveCriticalSection, licenseOrExceptionIdToObjectUri, listedExceptionIdCaseSensitive, listedLicenseIdCaseSensitive, listValues, objectUriToLicenseOrExceptionId, removeProperty, removeValueFromCollection, setValueMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.spdx.storage.IModelStore
getCaseSensisitiveId
-
Constructor Details
-
SpdxListedLicenseLocalStore
public SpdxListedLicenseLocalStore() throws org.spdx.core.InvalidSPDXAnalysisException- Throws:
org.spdx.core.InvalidSPDXAnalysisException
-
-
Method Details
-
getTocInputStream
- Specified by:
getTocInputStreamin classSpdxListedLicenseModelStore- Returns:
- InputStream for the Table of Contents of the licenses formatted in JSON SPDX
- Throws:
IOException- on IO errors
-
getLicenseInputStream
- Specified by:
getLicenseInputStreamin classSpdxListedLicenseModelStore- Returns:
- InputStream for a license formatted in SPDX JSON
- Throws:
IOException- on IO errors
-
getExceptionTocInputStream
- Specified by:
getExceptionTocInputStreamin classSpdxListedLicenseModelStore- Returns:
- InputStream for the Table of Contents of the exceptions formatted in JSON SPDX
- Throws:
IOException- on IO errors
-
getExceptionInputStream
- Specified by:
getExceptionInputStreamin classSpdxListedLicenseModelStore- Returns:
- InputStream for an exception formatted in SPDX JSON
- Throws:
IOException- on IO errors
-