We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9c5ee0c commit 31146edCopy full SHA for 31146ed
impl/core/src/main/java/io/serverlessworkflow/impl/executors/RunShellExecutor.java
@@ -156,6 +156,13 @@ public boolean accept(Class<? extends RunTaskConfiguration> clazz) {
156
return RunShell.class.equals(clazz);
157
}
158
159
+ /**
160
+ * Reads an InputStream and returns its content as a String. It keeps the original content using
161
+ * UTF-8 encoding.
162
+ *
163
+ * @param inputStream {@link InputStream} to be read
164
+ * @return {@link String} with the content of the InputStream
165
+ */
166
public static String readInputStream(InputStream inputStream) {
167
StringWriter writer = new StringWriter();
168
try (BufferedReader reader =
0 commit comments