All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.github.algomaster99.options.FromSbomOptions Maven / Gradle / Ivy

There is a newer version: 0.14.0
Show newest version
package io.github.algomaster99.options;

import io.github.algomaster99.terminator.commons.cyclonedx.Bom14Schema;
import io.github.algomaster99.terminator.commons.cyclonedx.CycloneDX;
import java.io.IOException;
import java.nio.file.Files;
import java.nio.file.Path;

public class FromSbomOptions {
    private final Bom14Schema input;
    private final String algorithm;
    private final Path output;

    public FromSbomOptions(Path input, String algorithm, Path output) throws IOException {
        this.algorithm = algorithm;
        this.input = CycloneDX.getPOJO(Files.readString(input));
        this.output = output;
    }

    public Bom14Schema getInput() {
        return input;
    }

    public String getAlgorithm() {
        return algorithm;
    }

    public Path getOutput() {
        return output;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy