diff --git a/.github/workflows/import java.io.*; public class InputStreamToString { public static String convertUsingStringBuilder(InputStream inputStream) throws IOException { StringBuilder result = new StringBuilder(); try (InputStreamReader reader = new InputStreamReader(inputStream)) { char[] buffer = new char[1024]; int length; while ((length = reader.read(buffer)) != -1) { result.append(buffer, 0, length); } } return result.toString(); } } b/.github/workflows/import java.io.*; public class InputStreamToString { public static String convertUsingStringBuilder(InputStream inputStream) throws IOException { StringBuilder result = new StringBuilder(); try (InputStreamReader reader = new InputStreamReader(inputStream)) { char[] buffer = new char[1024]; int length; while ((length = reader.read(buffer)) != -1) { result.append(buffer, 0, length); } } return result.toString(); } } new file mode 100644 index 0000000..e69de29 diff --git "a/.github/workflows/import java.io.*; import java.nio.file.Files; public class InputStreamToString { public static String convertUsingFiles(InputStream inputStream) throws IOException { return new String(inputStream.readAllBytes(), \"UTF-8\"); } }" "b/.github/workflows/import java.io.*; import java.nio.file.Files; public class InputStreamToString { public static String convertUsingFiles(InputStream inputStream) throws IOException { return new String(inputStream.readAllBytes(), \"UTF-8\"); } }" new file mode 100644 index 0000000..e69de29 diff --git "a/.github/workflows/import java.io.*; import java.util.Scanner; public class InputStreamToString { public static String convertUsingScanner(InputStream inputStream) { try (Scanner scanner = new Scanner(inputStream).useDelimiter(\"\\\\A\")) { return scanner.hasNext() ? scanner.next() : \"\"; } } }" "b/.github/workflows/import java.io.*; import java.util.Scanner; public class InputStreamToString { public static String convertUsingScanner(InputStream inputStream) { try (Scanner scanner = new Scanner(inputStream).useDelimiter(\"\\\\A\")) { return scanner.hasNext() ? scanner.next() : \"\"; } } }" new file mode 100644 index 0000000..e69de29 diff --git a/.github/workflows/import java.io.*; import java.util.stream.Collectors; public class InputStreamToString { public static String convertUsingBufferedReader(InputStream inputStream) throws IOException { try (BufferedReader reader = new BufferedReader(new InputStreamReader(inputStream))) { return reader.lines().collect(Collectors.joining(System.lineSeparator())); } } } b/.github/workflows/import java.io.*; import java.util.stream.Collectors; public class InputStreamToString { public static String convertUsingBufferedReader(InputStream inputStream) throws IOException { try (BufferedReader reader = new BufferedReader(new InputStreamReader(inputStream))) { return reader.lines().collect(Collectors.joining(System.lineSeparator())); } } } new file mode 100644 index 0000000..e69de29 diff --git "a/.github/workflows/import java.io.*; import org.apache.commons.io.IOUtils; public class InputStreamToString { public static String convertUsingIOUtils(InputStream inputStream) throws IOException { return IOUtils.toString(inputStream, \"UTF-8\"); } }" "b/.github/workflows/import java.io.*; import org.apache.commons.io.IOUtils; public class InputStreamToString { public static String convertUsingIOUtils(InputStream inputStream) throws IOException { return IOUtils.toString(inputStream, \"UTF-8\"); } }" new file mode 100644 index 0000000..e69de29