My Java program needs to read a binary file created by a non-Java program. The file contains integers, floats and doubles. What is the
simplest way of doing this? Currently, I am using a very un-elegant way - I read the file as an array of bytes, swap them, write the array
back to a temporary file and then read the temporary file again.