camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From christian ohr <>
Subject HL7 messages become unusable after convertBodyTo(String.class)
Date Fri, 24 Apr 2009 16:09:03 GMT

Hi, me again...

Another problem I came across:
when reading HL7 messages e.g. from a stream, they become unusable after
running though a convertBodyTo(String.class) converter for further

The reason is that the converter uses the readLine() method of a
BufferedReader which splits up at "\r" and/or "\n" characters, but then the
string is always aggregated with "\n". As HL7 segments MUST be separated by
"\r", you need to convert all "\n" into "\r" afterwards, which is pretty
annoying. Please also see

I will have a closer look at it and see if I can provide a patch next

View this message in context:
Sent from the Camel - Users mailing list archive at

View raw message