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 20:23:23 UTC
[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
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 <dk...@apache.org>
Authored: Wed Apr 15 13:36:10 2015 -0400
Committer: Daniel Kulp <dk...@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;
}
}