/** * Will first write the data lenght (or -1 if data null) and then write the data if non-null. * * @param data Data to write * @throws IOException */ public void writeData(byte[] data) throws IOException { writeData(this, data); }
/** * Will first write the data lenght (or -1 if data null) and then write the data if non-null. * * @param data Data to write * @throws IOException */ public void writeData(byte[] data) throws IOException { writeData(this, data); }
/** * Will first write the data lenght (or -1 if data null) and then write the data if non-null. * * @param data Data to write * @throws IOException */ public void writeData(byte[] data) throws IOException { writeData(this, data); }
public void serialize(DataOutputStream os) throws IOException { os.writeUnsignedNumber(dataList.size()); for (byte[] data : dataList) { os.writeData(data); } }