public class ResourceCollection extends Object
| Constructor and Description | 
|---|
ResourceCollection()
Construct a new empty resource collection. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
void | 
addResource(ResourceEntry resource)
Add a resource to the resource collection. 
 | 
byte[] | 
getMessageDigest(HashAlgorithm algorithm)
Retrieve a digest of all of the resources in the collection. 
 | 
ResourceEntry | 
getResource(String path)
Lookup a resource with a specific path. 
 | 
Collection<ResourceEntry> | 
getResources()  | 
public ResourceCollection()
public void addResource(ResourceEntry resource)
resource - the resource to addpublic Collection<ResourceEntry> getResources()
public ResourceEntry getResource(String path)
path - the path to lookup a resource fornull if no record was found matching the pathpublic byte[] getMessageDigest(HashAlgorithm algorithm) throws NoSuchAlgorithmException
algorithm - the hash function to use to generate the digest of the collectionNoSuchAlgorithmException - if the requested has function is unsupportedCopyright © 2020 National Institute of Standards and Technology. All rights reserved.