camel-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Claus Ibsen (JIRA)" <j...@apache.org>
Subject [jira] Issue Comment Edited: (CAMEL-322) support a text based Data Format for easy marshaling to/from text using optionally different character sets
Date Sun, 13 Apr 2008 14:15:44 GMT

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

davsclaus edited comment on CAMEL-322 at 4/13/08 7:14 AM:
------------------------------------------------------------

You can now do

{code}
from("direct:start").unmarshal().string("UTF-8").to("mock:unmarshal");
{code}

{code}
from("direct:start").marshal().string("UTF-8").process(new MyBookProcessor());
{code}

The parameter to string() is optional. If not provided Camel will use the JVM default charset
(standard behavior of the JDK)
{code}
 from("direct:start").unmarshal().string().to("mock:unmarshal");
{code}

      was (Author: davsclaus):
    You can now do

{code}
from("direct:start").unmarshal().string("UTF-8").to("mock:unmarshal");
{code}

{code}
from("direct:start").marshal().string("UTF-8").process(new MyBookProcessor());
{code}

The parameter to string() is optional. If not provided Camel will use the JVM default charset
(standard behavior of the JDK)
{code}
 from("direct:start").unmarshal().string().to("mock:unmarshal");
[code}
  
> support a text based Data Format for easy marshaling to/from text using optionally different
character sets
> -----------------------------------------------------------------------------------------------------------
>
>                 Key: CAMEL-322
>                 URL: https://issues.apache.org/activemq/browse/CAMEL-322
>             Project: Apache Camel
>          Issue Type: Improvement
>          Components: camel-core
>    Affects Versions: 1.3.0
>            Reporter: James Strachan
>            Assignee: Claus Ibsen
>             Fix For: 1.4.0
>
>
> See http://activemq.apache.org/camel/data-format.html - we might wanna do something like...
> {code}
> from("file://something").unmarshall().text("UTF-16").to("something")
> {code}

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message