You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cxf.apache.org by dk...@apache.org on 2015/04/15 19:36:57 UTC

[2/2] 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.

Use a ByteArrayInputStream not wrapped in a reader so the parser can get the enocding from the bytes instead of assuming system encoding.


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

Branch: refs/heads/master
Commit: 5539f332bbee355c6d7caaa12221ded5eaeab207
Parents: b3143a7
Author: Daniel Kulp <dk...@apache.org>
Authored: Wed Apr 15 13:36:10 2015 -0400
Committer: Daniel Kulp <dk...@apache.org>
Committed: Wed Apr 15 13:36:10 2015 -0400

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


http://git-wip-us.apache.org/repos/asf/cxf/blob/5539f332/core/src/main/java/org/apache/cxf/ws/addressing/EndpointReferenceUtils.java
----------------------------------------------------------------------
diff --git a/core/src/main/java/org/apache/cxf/ws/addressing/EndpointReferenceUtils.java b/core/src/main/java/org/apache/cxf/ws/addressing/EndpointReferenceUtils.java
index 4ab5910..6155c50 100644
--- a/core/src/main/java/org/apache/cxf/ws/addressing/EndpointReferenceUtils.java
+++ b/core/src/main/java/org/apache/cxf/ws/addressing/EndpointReferenceUtils.java
@@ -21,7 +21,6 @@ package org.apache.cxf.ws.addressing;
 
 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;
@@ -218,9 +217,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;
         }
     }