How can I read a binary file record by record in java?
I want to fetch a binary file from server and read its records. The binary file is made in Delfy by defining a record type:
My_Record_Type = packed
x,y : word;
The only way I have found to read this in Java is by wrapping the InputStream with a DataInputStream and read the records by using 2*readChar and 2*readByte in a while loop.
Is there another easier/faster way to do this? A way of reading record by record like in Delfi?