What I can use is a code representation class, rather than a basic DataInputStream for parsing.
DataInputStream