Skip to content

Commit 31146ed

Browse files
committed
Add javadoc
Signed-off-by: Matheus Cruz <[email protected]>
1 parent 9c5ee0c commit 31146ed

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

impl/core/src/main/java/io/serverlessworkflow/impl/executors/RunShellExecutor.java

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -156,6 +156,13 @@ public boolean accept(Class<? extends RunTaskConfiguration> clazz) {
156156
return RunShell.class.equals(clazz);
157157
}
158158

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+
*/
159166
public static String readInputStream(InputStream inputStream) {
160167
StringWriter writer = new StringWriter();
161168
try (BufferedReader reader =

0 commit comments

Comments
 (0)