Back to project page dissertation-project.
The source code is released under:
MIT License
If you think the Android project dissertation-project listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package com.fyp.resilience.util; /*from ww w.j a v a 2 s . c o m*/ import java.io.DataOutputStream; import java.io.IOException; public final class ConnectionUtils { public static void writeByteArrayToStreamWithLengthPrefix(final byte[] message, final DataOutputStream outStream) throws IOException { outStream.writeInt(message.length); outStream.write(message); } }