Converts a given object into transportable data and writes it to the provided OutputStream.
@param out An open outputstream to write to. This stream will NOT be closed.
@param type The type of the data being serialized to the stream.
@param data An object representing the data to be written out.
@throws IOException Thrown if there is an error writing to this stream.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.