Writes bytes from a byte[] to an OutputStream . @param data the byte array to write, do not modify during output, null ignored @param output the OutputStream to write to @throws NullPointerException if output is null @throws IOException if an I/O error
(final byte[] data, final OutputStream output)
| 1514 | * @since 1.1 |
| 1515 | */ |
| 1516 | public static void write(final byte[] data, final OutputStream output) |
| 1517 | throws IOException { |
| 1518 | if (data != null) { |
| 1519 | output.write(data); |
| 1520 | } |
| 1521 | } |
| 1522 | |
| 1523 | /** |
| 1524 | * Writes bytes from a <code>byte[]</code> to an <code>OutputStream</code> using chunked writes. |