Writes data from an input stream to an output stream. @param in input stream @param out output stream @throws IOException I/O exception
(final InputStream in, final OutputStream out)
| 367 | * @throws IOException I/O exception |
| 368 | */ |
| 369 | public static void write(final InputStream in, final OutputStream out) throws IOException { |
| 370 | try(BufferInput bi = BufferInput.get(in); BufferOutput bo = BufferOutput.get(out)) { |
| 371 | in.transferTo(out); |
| 372 | } |
| 373 | } |
| 374 | |
| 375 | /** |
| 376 | * Compares file names for equality. Ignores the case, depending on the operating system. |