Class EmbeddedFileHelper

java.lang.Object
org.sentrysoftware.metricshub.engine.strategy.utils.EmbeddedFileHelper

public class EmbeddedFileHelper extends Object
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 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 EmbeddedFile instance.
      Throws:
      IOException - If an I/O error occurs while processing the embedded files.