camel-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jstrac...@apache.org
Subject svn commit: r562678 - /activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/converter/NIOConverter.java
Date Sat, 04 Aug 2007 09:48:16 GMT
Author: jstrachan
Date: Sat Aug  4 02:48:15 2007
New Revision: 562678

URL: http://svn.apache.org/viewvc?view=rev&rev=562678
Log:
fix for CAMEL-83

Modified:
    activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/converter/NIOConverter.java

Modified: activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/converter/NIOConverter.java
URL: http://svn.apache.org/viewvc/activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/converter/NIOConverter.java?view=diff&rev=562678&r1=562677&r2=562678
==============================================================================
--- activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/converter/NIOConverter.java
(original)
+++ activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/converter/NIOConverter.java
Sat Aug  4 02:48:15 2007
@@ -37,6 +37,11 @@
     }
 
     @Converter
+    public static String toString(ByteBuffer buffer) {
+        return IOConverter.toString(buffer.array());
+    }
+
+    @Converter
     public static ByteBuffer toByteBuffer(byte[] data) {
         return ByteBuffer.wrap(data);
     }



Mime
View raw message