Here you can find the source of writeBytes(byte[] data, DataOutput out)
private static void writeBytes(byte[] data, DataOutput out) throws IOException
//package com.java2s; //License from project: Open Source License import java.io.*; public class Main { private static void writeBytes(byte[] data, DataOutput out) throws IOException { out.write(data);//from w ww . j a v a 2 s . c om } }