I am using spring batch to read/process binary files. I tried using SimpleBinaryBufferedReaderFactory and BinaryBufferedReader classes provided by spring batch framework and able to sucessfully read/process a binary file in which double values are written as characters as BinaryBufferdReader class is based on character stream, it reads the data in character format.
Now I need to upgrade my program to read binary file in which data is written as Double (8 byte double instead of characters). for example 12345678.7654321 is written as 8 byte double in the binary file instead of 16 byte characters.
I searched the support in spring-batch but could not find a way. Can any one please provide any suggestion on existing spring batch support or a way to override spring batch to achieve that. I tried overriding spring batch framework but found that all spring batch interfaces are based on Readers instead of Streams so cant find a way to write own implementation either.