DataOutput interface defines the following methods for writing a number, a character, a
boolean value, or a string in binary format:
writeChars writeByte writeInt writeShort writeLong writeFloat writeDouble writeChar writeBoolean writeUTF
writeInt always writes an integer as a 4-byte binary quantity regardless of the number of digits, and
writeDouble always writes a
double as an 8-byte binary quantity. The resulting output is not human-readable, but the space needed will be the same for each value of a given type and reading it back in will be faster than parsing text.
There are two ...