• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Liutauras Vilda
  • Paul Clapham
Sheriffs:
  • paul wheaton
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Piet Souris
Bartenders:
  • Mike London

Reading binary files using spring batch

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi All,

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.

Thanks in advance

-Vikas Garg
reply
    Bookmark Topic Watch Topic
  • New Topic