(InputStream is, PrintStream ps)
| 263 | } |
| 264 | |
| 265 | void sendFile(InputStream is, PrintStream ps) throws IOException { |
| 266 | try (is) { |
| 267 | int n; |
| 268 | while ((n = is.read(buffer)) > 0) { |
| 269 | ps.write(buffer, 0, n); |
| 270 | } |
| 271 | } |
| 272 | } |
| 273 | } |
| 274 | |
| 275 |
no test coverage detected