Class EmbeddedFileHelper
java.lang.Object
org.sentrysoftware.metricshub.engine.strategy.utils.EmbeddedFileHelper
The
EmbeddedFileHelper class provides utility methods for handling embedded files in various contexts, such as
command lines, AWK directives, headers, and bodies. It allows finding and processing file references in a given string.
The class is designed to have a private no-argument constructor to prevent instantiation.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Map<String, EmbeddedFile> findEmbeddedFiles(@NonNull String value) Finds all the embedded files that are referenced in the given string.
-
Constructor Details
-
EmbeddedFileHelper
public EmbeddedFileHelper()
-
-
Method Details
-
findEmbeddedFiles
public static Map<String,EmbeddedFile> findEmbeddedFiles(@NonNull @NonNull String value) throws IOException Finds all the embedded files that are referenced in the given string.- Parameters:
value- The value can be a command line, AWK directive, header, body, etc.- Returns:
- A map of the file reference to
EmbeddedFileinstance. - Throws:
IOException- If an I/O error occurs while processing the embedded files.
-