cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dk...@apache.org
Subject [5/6] cxf git commit: Use a ByteArrayInputStream not wrapped in a reader so the parser can get the enocding from the bytes instead of assuming system encoding. This closes #65
Date Wed, 15 Apr 2015 18:23:23 GMT
Use a ByteArrayInputStream not wrapped in a reader so the parser can get the enocding from
the bytes instead of assuming system encoding.
This closes #65


Project: http://git-wip-us.apache.org/repos/asf/cxf/repo
Commit: http://git-wip-us.apache.org/repos/asf/cxf/commit/cda90e0f
Tree: http://git-wip-us.apache.org/repos/asf/cxf/tree/cda90e0f
Diff: http://git-wip-us.apache.org/repos/asf/cxf/diff/cda90e0f

Branch: refs/heads/2.7.x-fixes
Commit: cda90e0fe57d930188615181d6d933dedee67309
Parents: 2ce2eae
Author: Daniel Kulp <dkulp@apache.org>
Authored: Wed Apr 15 13:36:10 2015 -0400
Committer: Daniel Kulp <dkulp@apache.org>
Committed: Wed Apr 15 14:22:46 2015 -0400

----------------------------------------------------------------------
 .../main/java/org/apache/cxf/wsdl/EndpointReferenceUtils.java   | 5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cxf/blob/cda90e0f/api/src/main/java/org/apache/cxf/wsdl/EndpointReferenceUtils.java
----------------------------------------------------------------------
diff --git a/api/src/main/java/org/apache/cxf/wsdl/EndpointReferenceUtils.java b/api/src/main/java/org/apache/cxf/wsdl/EndpointReferenceUtils.java
index c2fc67a..b315206 100644
--- a/api/src/main/java/org/apache/cxf/wsdl/EndpointReferenceUtils.java
+++ b/api/src/main/java/org/apache/cxf/wsdl/EndpointReferenceUtils.java
@@ -21,7 +21,6 @@ package org.apache.cxf.wsdl;
 
 import java.io.ByteArrayInputStream;
 import java.io.InputStream;
-import java.io.InputStreamReader;
 import java.lang.ref.Reference;
 import java.lang.ref.SoftReference;
 import java.net.MalformedURLException;
@@ -230,9 +229,7 @@ public final class EndpointReferenceUtils {
             LSInputImpl impl = new LSInputImpl();
             impl.setSystemId(newId);
             impl.setBaseURI(newId);
-            impl.setCharacterStream(
-                new InputStreamReader(
-                    new ByteArrayInputStream(value)));
+            impl.setByteStream(new ByteArrayInputStream(value));
             return impl;
         }
     }


Mime
View raw message