Package org.drools.drlonyaml.cli.utils
Class Utils
java.lang.Object
org.drools.drlonyaml.cli.utils.Utils
-
Method Summary
Modifier and TypeMethodDescriptionstatic InputStreamconventionInputStream(File inputFile) Returns an InputStream reading the file content when provided as a parameter, otherwise from STDIN until `\\A` when null.conventionOutputConsumer(File archive) Returns an Consumer which writes content to the file when provided as a parameter, otherwise consumer emits to STDOUT when null.
-
Method Details
-
conventionInputStream
Returns an InputStream reading the file content when provided as a parameter, otherwise from STDIN until `\\A` when null.- Throws:
FileNotFoundException
-
conventionOutputConsumer
Returns an Consumer which writes content to the file when provided as a parameter, otherwise consumer emits to STDOUT when null.
-