Return-Path: X-Original-To: apmail-cxf-commits-archive@www.apache.org Delivered-To: apmail-cxf-commits-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id D57A717BEB for ; Wed, 15 Apr 2015 17:37:01 +0000 (UTC) Received: (qmail 91863 invoked by uid 500); 15 Apr 2015 17:36:56 -0000 Delivered-To: apmail-cxf-commits-archive@cxf.apache.org Received: (qmail 91671 invoked by uid 500); 15 Apr 2015 17:36:56 -0000 Mailing-List: contact commits-help@cxf.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cxf.apache.org Delivered-To: mailing list commits@cxf.apache.org Received: (qmail 91655 invoked by uid 99); 15 Apr 2015 17:36:56 -0000 Received: from git1-us-west.apache.org (HELO git1-us-west.apache.org) (140.211.11.23) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 15 Apr 2015 17:36:56 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id 7CF16DFA6D; Wed, 15 Apr 2015 17:36:56 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: dkulp@apache.org To: commits@cxf.apache.org Date: Wed, 15 Apr 2015 17:36:57 -0000 Message-Id: <97e34fcbf6c84a8095a2a00030994750@git.apache.org> In-Reply-To: <073420f5ac4441a585ddfbdda38b4411@git.apache.org> References: <073420f5ac4441a585ddfbdda38b4411@git.apache.org> X-Mailer: ASF-Git Admin Mailer Subject: [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 Authored: Wed Apr 15 13:36:10 2015 -0400 Committer: Daniel Kulp 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; } }