camel-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Daniel Kulp (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CAMEL-6316) jaxb data format - Should marshal to String instead of byte[]
Date Fri, 26 Apr 2013 13:50:18 GMT

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

Daniel Kulp commented on CAMEL-6316:
------------------------------------

The "optimum" representation really depends on what you are intending to do with the result
of the marshall.   If you are just going to send it down an HTTP connection or similar, marshalling
to byte[] would perform a lot better (and use about 1/2 the memory) compared to a String.
 

Really, this needs to be configurable, likely with an option for InputStream as well (backed
by a CachedOutputStream/InputStream for large structures).
                
> jaxb data format - Should marshal to String instead of byte[]
> -------------------------------------------------------------
>
>                 Key: CAMEL-6316
>                 URL: https://issues.apache.org/jira/browse/CAMEL-6316
>             Project: Camel
>          Issue Type: Improvement
>          Components: camel-jaxb
>            Reporter: Claus Ibsen
>            Priority: Minor
>             Fix For: 2.12.0
>
>
> When marshalling to XML then it would be best if we use a String type instead of byte[].
> See nabble
> http://camel.465427.n5.nabble.com/JAXB-marshal-generates-byte-array-instead-of-String-tp5715174.html

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message