MCPcopy Index your code
hub / github.com/apache/commons-io / write

Method write

src/main/java/org/apache/commons/io/IOUtils.java:1516–1521  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

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.

Calls 3

toCharsetMethod · 0.95
getBytesMethod · 0.45
toStringMethod · 0.45