camel-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jstrac...@apache.org
Subject svn commit: r706647 - /activemq/camel/trunk/components/camel-xstream/src/main/java/org/apache/camel/dataformat/xstream/XStreamDataFormat.java
Date Tue, 21 Oct 2008 14:51:45 GMT
Author: jstrachan
Date: Tue Oct 21 07:51:44 2008
New Revision: 706647

URL: http://svn.apache.org/viewvc?rev=706647&view=rev
Log:
added an extra constructor

Modified:
    activemq/camel/trunk/components/camel-xstream/src/main/java/org/apache/camel/dataformat/xstream/XStreamDataFormat.java

Modified: activemq/camel/trunk/components/camel-xstream/src/main/java/org/apache/camel/dataformat/xstream/XStreamDataFormat.java
URL: http://svn.apache.org/viewvc/activemq/camel/trunk/components/camel-xstream/src/main/java/org/apache/camel/dataformat/xstream/XStreamDataFormat.java?rev=706647&r1=706646&r2=706647&view=diff
==============================================================================
--- activemq/camel/trunk/components/camel-xstream/src/main/java/org/apache/camel/dataformat/xstream/XStreamDataFormat.java
(original)
+++ activemq/camel/trunk/components/camel-xstream/src/main/java/org/apache/camel/dataformat/xstream/XStreamDataFormat.java
Tue Oct 21 07:51:44 2008
@@ -46,6 +46,13 @@
     private XStream xstream;
     private StaxConverter staxConverter;
 
+    public XStreamDataFormat() {
+    }
+
+    public XStreamDataFormat(XStream xstream) {
+        setXStream(xstream);
+    }
+
     public void marshal(Exchange exchange, Object body, OutputStream stream) throws Exception
{
         HierarchicalStreamWriter writer = createHierarchicalStreamWriter(exchange, body,
stream);
         try {



Mime
View raw message