Package | Description |
---|---|
gov.nist.secauto.swid.builder.resource | |
gov.nist.secauto.swid.builder.resource.file |
Modifier and Type | Method and Description |
---|---|
FileBuilder |
AbstractResourceCollectionBuilder.newFileResource(List<String> pathSegments)
Creates a new file builder based on resource pointed to by a sequence of path segments.
|
Modifier and Type | Method and Description |
---|---|
void |
ResourceCollectionEntryGenerator.generate(T parent,
FileBuilder builder)
Adds the file, represented by the builder, to this resource collection.
|
Modifier and Type | Method and Description |
---|---|
static FileBuilder |
FileBuilder.create() |
FileBuilder |
FileBuilder.hash(HashAlgorithm algorithm,
byte[] hashBytes)
Sets the file's hash value, for the provided algorithm, to the provided value.
|
FileBuilder |
FileBuilder.hash(HashAlgorithm algorithm,
File file)
Sets the to-be-built file's hash value, for the provided algorithm, to the provided value.
|
FileBuilder |
FileBuilder.hash(HashAlgorithm algorithm,
InputStream is)
Sets the file's hash value, for the provided algorithm, to the provided value.
|
FileBuilder |
FileBuilder.hash(HashAlgorithm algorithm,
String hashHexBytes)
Sets the file's hash value, for the provided algorithm, to the provided value.
|
FileBuilder |
DirectoryBuilder.newFileResource(String filename)
Adds a new file resource to this directory.
|
FileBuilder |
FileBuilder.size(long size)
Sets the to-be-built file's size to the provided value.
|
FileBuilder |
FileBuilder.version(String version)
Sets the to-be-built file's version to the provided value.
|
Copyright © 2020 National Institute of Standards and Technology. All rights reserved.