read strings, integers, floats, bools and so on from byte array.  Something like http://www.docjar.com/html/api/java/io/DataInputStream.java.html