Java implementation of a WAV file parser