You may want to look at Camel Beanio and the Beanio integration.  Much of
what you seem to want to do can be done as part of the process of reading
the file in.  You can specify which data types to convert the various
fields into and which to ignore and so on.

http://www.beanio.org/2.0/docs/reference/index.html#CSVStreamFormat

On Wed, Mar 16, 2016 at 11:15 AM, Michele <[email protected]
> wrote:

> Hi,
>
> i will manage different file (txt/csv/fixed-length) where each of them has
> a
> different structure and criterions of validation (ex. type of data (string,
> date, numeric), max length, is valid date by pattern...).
>
> Both solutions are good, XML version of some validation using the simple
> language or CustomValidator.
> Probably i will use a CustomValidator driven a custom xml configuration.
>
> I have seen beanio and the question is: Is this a valid xml configuration
> file?
> <stream name="employeeFile" format="csv">
> <record name="employee" class="java.util.LinkedHashMap">
>
> thanks a lot for your suggestions
>
> Greetings
>
> Michele
>
>
>
>
>
>
>
>
> --
> View this message in context:
> http://camel.465427.n5.nabble.com/How-to-validate-Body-Content-in-Map-Object-tp5779118p5779167.html
> Sent from the Camel - Users mailing list archive at Nabble.com.
>

Reply via email to