I\'m hacking around in some scripts trying to parse some data written by Javas DataOutputStream#writeLong(...). Since java always seems to write big endian, I have
DataOutputStream#writeLong(...)
Used dd, Luke!
dd if=sourcefile of=resultfile conv=swab