Author: thomas.diesler(a)jboss.com
Date: 2007-03-29 11:29:00 -0400 (Thu, 29 Mar 2007)
New Revision: 2716
Added:
trunk/jbossws-core/src/java/org/jboss/ws/core/jaxrpc/binding/BufferedStreamSource.java
Modified:
trunk/build/ant-import/build-hudson.xml
trunk/build/version.properties
trunk/jbossws-core/src/java/org/jboss/ws/core/soap/XMLFragment.java
Log:
Update to hudson-1.93
Modified: trunk/build/ant-import/build-hudson.xml
===================================================================
--- trunk/build/ant-import/build-hudson.xml 2007-03-29 13:53:57 UTC (rev 2715)
+++ trunk/build/ant-import/build-hudson.xml 2007-03-29 15:29:00 UTC (rev 2716)
@@ -57,6 +57,7 @@
</fileset>
<filterset>
<filtersfile file="${build.dir}/ant.properties"/>
+ <filter token="hudson.home" value="${hudson.home}"/>
</filterset>
</copy>
</target>
Modified: trunk/build/version.properties
===================================================================
--- trunk/build/version.properties 2007-03-29 13:53:57 UTC (rev 2715)
+++ trunk/build/version.properties 2007-03-29 15:29:00 UTC (rev 2716)
@@ -68,7 +68,7 @@
junit=3.8.1
oswego-concurrent=1.3.4
qdox=1.4
-sun-hudson=1.74
+sun-hudson=1.93
sun-jaf=1.1
sun-javamail=1.4
sun-servlet=2.4
Added:
trunk/jbossws-core/src/java/org/jboss/ws/core/jaxrpc/binding/BufferedStreamSource.java
===================================================================
---
trunk/jbossws-core/src/java/org/jboss/ws/core/jaxrpc/binding/BufferedStreamSource.java
(rev 0)
+++
trunk/jbossws-core/src/java/org/jboss/ws/core/jaxrpc/binding/BufferedStreamSource.java 2007-03-29
15:29:00 UTC (rev 2716)
@@ -0,0 +1,71 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2005, JBoss Inc., and individual contributors as indicated
+ * by the @authors tag. See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
+ */
+package org.jboss.ws.core.jaxrpc.binding;
+
+// $Id$
+
+import java.io.ByteArrayInputStream;
+import java.io.InputStream;
+import java.io.InputStreamReader;
+import java.io.Reader;
+
+import javax.xml.transform.stream.StreamSource;
+
+/**
+ * A StreamSource that can be read repeatedly.
+ *
+ * @author Thomas.Diesler(a)jboss.org
+ * @since 29-Mar-2007
+ */
+public class BufferedStreamSource extends StreamSource
+{
+ private byte[] bytes;
+
+ public BufferedStreamSource(byte[] bytes)
+ {
+ this.bytes = bytes;
+ }
+
+ @Override
+ public InputStream getInputStream()
+ {
+ return new ByteArrayInputStream(bytes);
+ }
+
+ @Override
+ public Reader getReader()
+ {
+ return new InputStreamReader(new ByteArrayInputStream(bytes));
+ }
+
+ @Override
+ public void setInputStream(InputStream inputStream)
+ {
+ throw new UnsupportedOperationException();
+ }
+
+ @Override
+ public void setReader(Reader reader)
+ {
+ throw new UnsupportedOperationException();
+ }
+}
Property changes on:
trunk/jbossws-core/src/java/org/jboss/ws/core/jaxrpc/binding/BufferedStreamSource.java
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Modified: trunk/jbossws-core/src/java/org/jboss/ws/core/soap/XMLFragment.java
===================================================================
--- trunk/jbossws-core/src/java/org/jboss/ws/core/soap/XMLFragment.java 2007-03-29
13:53:57 UTC (rev 2715)
+++ trunk/jbossws-core/src/java/org/jboss/ws/core/soap/XMLFragment.java 2007-03-29
15:29:00 UTC (rev 2716)
@@ -133,7 +133,6 @@
{
source = beginStreamSourceAccess(source);
retElement = DOMUtils.sourceToElement(source);
- source = new DOMSource(retElement);
endStreamSourceAccess();
}
catch (IOException ex)