Loading src/com/owncloud/android/lib/common/method/GzipedPropfind.java +3 −4 Original line number Diff line number Diff line Loading @@ -55,12 +55,12 @@ public class GzipedPropfind extends PropFindMethod { return super.getResponseBodyAsDocument(); } //@TOdo: look for potential optimisation like pipe gzipInputStream directly in InputStream in StringBuilder s = new StringBuilder(); String line; try{ GZIPInputStream gzipis = new GZIPInputStream(getResponseBodyAsStream()); BufferedReader bufferedReader = new BufferedReader(new InputStreamReader(gzipis)); StringBuilder s = new StringBuilder(); String line; while ((line = bufferedReader.readLine()) != null) { s.append(line); } Loading @@ -70,7 +70,6 @@ public class GzipedPropfind extends PropFindMethod { throw e; } InputStream in = new ByteArrayInputStream(s.toString().getBytes()); if (in != null) { // read response and try to build a xml document Loading Loading
src/com/owncloud/android/lib/common/method/GzipedPropfind.java +3 −4 Original line number Diff line number Diff line Loading @@ -55,12 +55,12 @@ public class GzipedPropfind extends PropFindMethod { return super.getResponseBodyAsDocument(); } //@TOdo: look for potential optimisation like pipe gzipInputStream directly in InputStream in StringBuilder s = new StringBuilder(); String line; try{ GZIPInputStream gzipis = new GZIPInputStream(getResponseBodyAsStream()); BufferedReader bufferedReader = new BufferedReader(new InputStreamReader(gzipis)); StringBuilder s = new StringBuilder(); String line; while ((line = bufferedReader.readLine()) != null) { s.append(line); } Loading @@ -70,7 +70,6 @@ public class GzipedPropfind extends PropFindMethod { throw e; } InputStream in = new ByteArrayInputStream(s.toString().getBytes()); if (in != null) { // read response and try to build a xml document Loading