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

Babak Vahdat commented on CAMEL-4813:
-------------------------------------

IMHO just changing the signature to:

{code}
@Converter
public static InputStream toInputStream(AbstractStringBuilder builder, Exchange 
exchange) throws IOException;
{code}

should do the trick, so that we don't have to duplicate the code. However I 
haven't tried that and don't know if the Converter lookup-logic would support 
this dynamic type approach as well.
                
> Add a converter to turn StringBuffer to InputStream
> ---------------------------------------------------
>
>                 Key: CAMEL-4813
>                 URL: https://issues.apache.org/jira/browse/CAMEL-4813
>             Project: Camel
>          Issue Type: Improvement
>          Components: camel-core
>            Reporter: Willem Jiang
>            Assignee: Willem Jiang
>            Priority: Minor
>             Fix For: 2.7.5, 2.8.4, 2.9.1
>
>
> As the user request[1], we need to consider to provide a converter for 
> StringBuffer
> [1]http://camel.465427.n5.nabble.com/TypeConverter-for-StringBuilder-tp5092438p5092438.html

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to