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 err
(byte[] data, OutputStream output)
| 888 | * @since Commons IO 1.1 |
| 889 | */ |
| 890 | public static void write(byte[] data, OutputStream output) throws IOException { |
| 891 | if (data != null) { |
| 892 | output.write(data); |
| 893 | } |
| 894 | } |
| 895 | |
| 896 | /** |
| 897 | * Writes bytes from a <code>byte[]</code> to chars on a <code>Writer</code> |