DataInputStream and DataOutputStream read and write primitive Java data types and Strings in a machine-independent way.
DataInputStream
DataOutputStream
IEEE 754 for floating point data
big-endian format for integer data
modified UTF-8 for Unicode data