(File file, String content)
| 3045 | } |
| 3046 | |
| 3047 | static void writeText(File file, String content) throws IOException { |
| 3048 | try (FileOutputStream out = new FileOutputStream(file)) { |
| 3049 | if (content != null) |
| 3050 | out.write(content.getBytes()); |
| 3051 | } |
| 3052 | } |
| 3053 | |
| 3054 | static String readStream(InputStream is) throws IOException { |
| 3055 | return readStream(is, StandardCharsets.UTF_8); |
no test coverage detected