Text and Binary Files
Introduction
DataInputStream/DataOutputStream
DataInputStream
DataInputStream reads bytes from the stream and converts them into appropriate primitive type values or strings.
DataInputStream extends FilterInputStream and implements the DataInput interface.
DataOutputStream
DataOutputStream converts primitive type values or strings into bytes and output the bytes to the stream.
DataOutputStream extends FilterOutputStream and implements the DataOutput interface.