Class ResourceFilePrinter

java.lang.Object
de.gustavblass.nginx.ipguard4j.cli.ResourceFilePrinter

public class ResourceFilePrinter extends Object
  • Field Details

    • LOG

      private static final org.apache.logging.log4j.Logger LOG
  • Constructor Details

    • ResourceFilePrinter

      public ResourceFilePrinter()
  • Method Details

    • printResourceFile

      public static int printResourceFile(@NonNull @NonNull String resourcePath)
      Reads the given resource File and prints its content to the console.
      Parameters:
      resourcePath - The path to the resource file relative to the application's resources folder (with the package name as the folder structure inside; dots must be replaced with slashes).
      Returns:
      An ExitCode indicating the success or failure of the operation.