You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Willem Jiang (Created) (JIRA)" <ji...@apache.org> on 2011/12/22 03:33:30 UTC
[jira] [Created] (CAMEL-4813) Add a converter to turn StringBuffer
to InputStream
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
[jira] [Commented] (CAMEL-4813) Add a converter to turn
StringBuffer to InputStream
Posted by "Claus Ibsen (Commented) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CAMEL-4813?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13174617#comment-13174617 ]
Claus Ibsen commented on CAMEL-4813:
------------------------------------
Willem can you add for StringBuilder as well (there is both a StringBuffer and StringBuilder in the JDK)
> 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
[jira] [Resolved] (CAMEL-4813) Add a converter to turn StringBuffer
to InputStream
Posted by "Willem Jiang (Resolved) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CAMEL-4813?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Willem Jiang resolved CAMEL-4813.
---------------------------------
Resolution: Fixed
Applied patch into trunk, camel-2.8.x and camel-2.7.x branches.
> 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
[jira] [Commented] (CAMEL-4813) Add a converter to turn
StringBuffer to InputStream
Posted by "Babak Vahdat (Commented) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CAMEL-4813?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13174673#comment-13174673 ]
Babak Vahdat commented on CAMEL-4813:
-------------------------------------
Oops AbstractStringBuilder seems to be package private :-(
> 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
[jira] [Commented] (CAMEL-4813) Add a converter to turn
StringBuffer to InputStream
Posted by "Babak Vahdat (Commented) (JIRA)" <ji...@apache.org>.
[ 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