Id write my own data format and suck the records into a format that could be rendered in JSON and then have the marshaller output a list of these json objects. After that its like splitting any other list.
*Robert Simmons Jr. MSc. - Lead Java Architect @ EA* *Author of: Hardcore Java (2003) and Maintainable Java (2012)* *LinkedIn: **http://www.linkedin.com/pub/robert-simmons/40/852/a39 <http://www.linkedin.com/pub/robert-simmons/40/852/a39>* On Mon, Dec 9, 2013 at 9:21 AM, lb <[email protected]> wrote: > Hi all, > I have a file which has the following content (fixed length record): > > Main Header record (starts with HR) > Sub Header record (starts with SH) > Data record (starts with DR) > Sub Header record (starts with SH) > Data record (starts with DR) > Sub Header record (starts with SH) > Data record (starts with DR) > ... > > The sub header record defines some of the attributes of the data that > follows. > > I can easily process DR records only but is there a way to stick some > information from the sub header record and from the main header record to > the DR record? > > Thx, > Luca > > > > > -- > View this message in context: > http://camel.465427.n5.nabble.com/Split-hierarchical-flat-file-tp5744513.html > Sent from the Camel - Users mailing list archive at Nabble.com. >
