Here you can find the source of writeBytes(OutputStream os, byte[] b)
public static void writeBytes(OutputStream os, byte[] b) throws IOException
//package com.java2s; // See LICENSE.txt for license information import java.io.IOException; import java.io.OutputStream; public class Main { public static void writeBytes(OutputStream os, byte[] b) throws IOException { os.write(b, 0, b.length);/*from w w w .j a va 2 s .c om*/ } public static void writeBytes(OutputStream os, byte[] b, int off, int len) throws IOException { os.write(b, off, len); } }