Class ResourceFilePrinter
java.lang.Object
de.gustavblass.nginx.ipguard4j.cli.ResourceFilePrinter
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic intprintResourceFile(@NonNull String resourcePath) Reads the given resourceFileand prints its content to the console.
-
Field Details
-
LOG
private static final org.apache.logging.log4j.Logger LOG
-
-
Constructor Details
-
ResourceFilePrinter
public ResourceFilePrinter()
-
-
Method Details
-
printResourceFile
Reads the given resourceFileand 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
ExitCodeindicating the success or failure of the operation.
-