code: public static void copy(byte[] in, File out) throws IOException {
          assert in != null : "No input byte array specified";
          assert out != null : "No output File specified";
          ByteArrayInputStream inStream = new ByteArrayInputStream(in);
          OutputStream outStream = new BufferedOutputStream(new FileOutputStream(out));
          copy(inStream, outStream);
      }
docs: Copy the contents of the given byte array to the given output File.
  @param in the byte array to copy from
  @param out the file to copy to
  @throws IOException in case of I/O errors