You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by cm...@apache.org on 2011/01/04 22:50:01 UTC

svn commit: r1055192 - /camel/trunk/components/camel-castor/src/main/java/org/apache/camel/dataformat/castor/AbstractCastorDataFormat.java

Author: cmueller
Date: Tue Jan  4 21:50:01 2011
New Revision: 1055192

URL: http://svn.apache.org/viewvc?rev=1055192&view=rev
Log:
CAMEL-3483: csv unmarshal and maybe other components uses default encoding

Modified:
    camel/trunk/components/camel-castor/src/main/java/org/apache/camel/dataformat/castor/AbstractCastorDataFormat.java

Modified: camel/trunk/components/camel-castor/src/main/java/org/apache/camel/dataformat/castor/AbstractCastorDataFormat.java
URL: http://svn.apache.org/viewvc/camel/trunk/components/camel-castor/src/main/java/org/apache/camel/dataformat/castor/AbstractCastorDataFormat.java?rev=1055192&r1=1055191&r2=1055192&view=diff
==============================================================================
--- camel/trunk/components/camel-castor/src/main/java/org/apache/camel/dataformat/castor/AbstractCastorDataFormat.java (original)
+++ camel/trunk/components/camel-castor/src/main/java/org/apache/camel/dataformat/castor/AbstractCastorDataFormat.java Tue Jan  4 21:50:01 2011
@@ -70,7 +70,7 @@ public abstract class AbstractCastorData
     }
 
     public Object unmarshal(Exchange exchange, InputStream inputStream) throws Exception {
-        Reader reader = new InputStreamReader(inputStream);
+        Reader reader = new InputStreamReader(inputStream, encoding);
         return getUnmarshaller(exchange).unmarshal(reader);
     }
 
@@ -165,5 +165,4 @@ public abstract class AbstractCastorData
     public void setValidation(boolean validation) {
         this.validation = validation;
     }
-
-}
+}
\ No newline at end of file