camel-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Marcin Domanski (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CAMEL-11932) For fixed length records crlf field is not honored during un-marshaling
Date Fri, 03 Nov 2017 08:48:00 GMT

    [ https://issues.apache.org/jira/browse/CAMEL-11932?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16237296#comment-16237296
] 

Marcin Domanski commented on CAMEL-11932:
-----------------------------------------

Hi Claus,
My use case is that I am parsing a content where each line ends with specific eol format (in
this case crlf) but in the fields it may happen that there are just LFs that I should ignore.
With current implementation I cannot break on specific type of EOL it is always any type of
eol.

> For fixed length records crlf field is not honored during un-marshaling 
> ------------------------------------------------------------------------
>
>                 Key: CAMEL-11932
>                 URL: https://issues.apache.org/jira/browse/CAMEL-11932
>             Project: Camel
>          Issue Type: Improvement
>          Components: camel-bindy
>    Affects Versions: 2.19.3
>            Reporter: Marcin Domanski
>            Priority: Minor
>
> Reading documentation [here|http://camel.apache.org/bindy.html] you can find that there
is a {{@FixedLengthRecord.clrf}} annotation parameter described as:
> bq. optional - possible values = WINDOWS,UNIX,MAC, or custom; default value = WINDOWS
- allow to define the carriage return character to use. If you specify a value other than
the three listed before, the value you enter (custom) will be used as the CRLF character(s)
> Unfortunately it seems that this is honored only for marshaling, as for un-marshaling
in {{BindyFixedLengthDataFormat.unmarshal()}} java.util.Scanner.nextLine() is used. This implementation
ignores the crlf parameter during un-marshaling.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Mime
View raw message