Author: darran.lofthouse(a)jboss.com
Date: 2007-08-13 11:40:40 -0400 (Mon, 13 Aug 2007)
New Revision: 4341
Modified:
legacy/branches/dlofthouse/ASPATCH-260/jbossws-core/src/java/org/jboss/ws/core/jaxrpc/binding/DeserializerSupport.java
Log:
Rollback
Modified:
legacy/branches/dlofthouse/ASPATCH-260/jbossws-core/src/java/org/jboss/ws/core/jaxrpc/binding/DeserializerSupport.java
===================================================================
---
legacy/branches/dlofthouse/ASPATCH-260/jbossws-core/src/java/org/jboss/ws/core/jaxrpc/binding/DeserializerSupport.java 2007-08-13
15:24:16 UTC (rev 4340)
+++
legacy/branches/dlofthouse/ASPATCH-260/jbossws-core/src/java/org/jboss/ws/core/jaxrpc/binding/DeserializerSupport.java 2007-08-13
15:40:40 UTC (rev 4341)
@@ -24,7 +24,6 @@
// $Id$
import java.io.ByteArrayOutputStream;
-import java.io.UnsupportedEncodingException;
import javax.xml.namespace.QName;
import javax.xml.rpc.encoding.Deserializer;
@@ -98,7 +97,7 @@
ByteArrayOutputStream baos = new ByteArrayOutputStream(1024);
StreamResult streamResult = new StreamResult(baos);
tf.newTransformer().transform(source, streamResult);
- xmlFragment = new String(baos.toByteArray(),"UTF-8");
+ xmlFragment = new String(baos.toByteArray());
if (xmlFragment.startsWith("<?xml"))
{
int index = xmlFragment.indexOf(">");
@@ -110,10 +109,6 @@
{
WSException.rethrow(e);
}
- catch (UnsupportedEncodingException e)
- {
- WSException.rethrow(e);
- }
return xmlFragment;
}