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

Claus Ibsen commented on CAMEL-3710:
------------------------------------

Hmm we got it already in ObjectConverter
{code}
    @Converter
    public static char toChar(String value) {
        // must be 1 length string
        if (value == null || value.length() != 1) {
            throw new IllegalArgumentException("String must have exactly a 
length of 1: " + value);
        }
        return value.toCharArray()[0];
    }
{code}

> Add String to char type converter
> ---------------------------------
>
>                 Key: CAMEL-3710
>                 URL: https://issues.apache.org/jira/browse/CAMEL-3710
>             Project: Camel
>          Issue Type: Improvement
>          Components: camel-core, camel-flatpack
>            Reporter: Claus Ibsen
>            Priority: Minor
>             Fix For: 2.7.0
>
>
> See nabble
> http://camel.465427.n5.nabble.com/How-to-specify-tab-delimiter-for-flatpack-tp3397320p3397320.html
> This makes it easier to configure the delimiter in flatpack as it uses a char 
> type. And in the endpoint uri it's all String

-- 
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to