summaryrefslogtreecommitdiffstats
path: root/sca-java-1.x/branches
diff options
context:
space:
mode:
authornash <nash@13f79535-47bb-0310-9956-ffa450edef68>2010-10-20 12:31:26 +0000
committernash <nash@13f79535-47bb-0310-9956-ffa450edef68>2010-10-20 12:31:26 +0000
commit2f75c2a9a2be9b647540a5d199196d905caa63a6 (patch)
treef24a837e08558ba6ca38ed9799787ba04de5f7df /sca-java-1.x/branches
parent60ed1db6289dedfc21359eec2d7332d51a311543 (diff)
TUSCANY-3734: Fix incorrect rendering of non-ASCII characters
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@1025535 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'sca-java-1.x/branches')
-rw-r--r--sca-java-1.x/branches/sca-java-1.6.1/modules/binding-atom-abdera/src/main/java/org/apache/tuscany/sca/binding/atom/provider/AtomBindingInvoker.java9
1 files changed, 4 insertions, 5 deletions
diff --git a/sca-java-1.x/branches/sca-java-1.6.1/modules/binding-atom-abdera/src/main/java/org/apache/tuscany/sca/binding/atom/provider/AtomBindingInvoker.java b/sca-java-1.x/branches/sca-java-1.6.1/modules/binding-atom-abdera/src/main/java/org/apache/tuscany/sca/binding/atom/provider/AtomBindingInvoker.java
index 99fa3a2e73..92ccf2c5c3 100644
--- a/sca-java-1.x/branches/sca-java-1.6.1/modules/binding-atom-abdera/src/main/java/org/apache/tuscany/sca/binding/atom/provider/AtomBindingInvoker.java
+++ b/sca-java-1.x/branches/sca-java-1.6.1/modules/binding-atom-abdera/src/main/java/org/apache/tuscany/sca/binding/atom/provider/AtomBindingInvoker.java
@@ -21,7 +21,6 @@ package org.apache.tuscany.sca.binding.atom.provider;
import static org.apache.tuscany.sca.binding.atom.provider.AtomBindingUtil.entry;
import static org.apache.tuscany.sca.binding.atom.provider.AtomBindingUtil.feedEntry;
-import java.io.InputStreamReader;
import java.io.StringWriter;
import java.util.ArrayList;
import java.util.List;
@@ -106,7 +105,7 @@ class AtomBindingInvoker implements Invoker, DataExchangeSemantics {
// Read the Atom entry
if (status == 200) {
Document<org.apache.abdera.model.Entry> doc =
- abderaParser.parse(new InputStreamReader(getMethod.getResponseBodyAsStream()));
+ abderaParser.parse(getMethod.getResponseBodyAsStream());
parsing = true;
org.apache.abdera.model.Entry feedEntry = doc.getRoot();
@@ -190,7 +189,7 @@ class AtomBindingInvoker implements Invoker, DataExchangeSemantics {
// Read the Atom entry
if (status == 200 || status == 201) {
- Document<org.apache.abdera.model.Entry> doc = abderaParser.parse(new InputStreamReader(postMethod.getResponseBodyAsStream()));
+ Document<org.apache.abdera.model.Entry> doc = abderaParser.parse(postMethod.getResponseBodyAsStream());
parsing = true;
org.apache.abdera.model.Entry createdEntry = doc.getRoot();
@@ -361,7 +360,7 @@ class AtomBindingInvoker implements Invoker, DataExchangeSemantics {
// Read the Atom feed
if (status == 200) {
- Document<Feed> doc = abderaParser.parse(new InputStreamReader(getMethod.getResponseBodyAsStream()));
+ Document<Feed> doc = abderaParser.parse(getMethod.getResponseBodyAsStream());
parsing = true;
Feed feed = null;
@@ -437,7 +436,7 @@ class AtomBindingInvoker implements Invoker, DataExchangeSemantics {
// Read the Atom feed
if (status == 200) {
- Document<Feed> doc = abderaParser.parse(new InputStreamReader(getMethod.getResponseBodyAsStream()));
+ Document<Feed> doc = abderaParser.parse(getMethod.getResponseBodyAsStream());
parsing = true;
Feed feed = doc.getRoot();