cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dk...@apache.org
Subject svn commit: r745586 - /cxf/trunk/distribution/src/main/release/samples/restful_http_binding/src/demo/restful/client/Client.java
Date Wed, 18 Feb 2009 18:04:42 GMT
Author: dkulp
Date: Wed Feb 18 18:04:42 2009
New Revision: 745586

URL: http://svn.apache.org/viewvc?rev=745586&view=rev
Log:
Fix usage of stream in client

Modified:
    cxf/trunk/distribution/src/main/release/samples/restful_http_binding/src/demo/restful/client/Client.java

Modified: cxf/trunk/distribution/src/main/release/samples/restful_http_binding/src/demo/restful/client/Client.java
URL: http://svn.apache.org/viewvc/cxf/trunk/distribution/src/main/release/samples/restful_http_binding/src/demo/restful/client/Client.java?rev=745586&r1=745585&r2=745586&view=diff
==============================================================================
--- cxf/trunk/distribution/src/main/release/samples/restful_http_binding/src/demo/restful/client/Client.java
(original)
+++ cxf/trunk/distribution/src/main/release/samples/restful_http_binding/src/demo/restful/client/Client.java
Wed Feb 18 18:04:42 2009
@@ -36,12 +36,7 @@
     }
 
     private static String getStringFromInputStream(InputStream in) throws Exception {
-        CachedOutputStream bos = new CachedOutputStream();
-        IOUtils.copy(in, bos);
-        in.close();
-        bos.close();
-        //System.out.println(bos.getOut().toString());
-        return bos.getOut().toString();
+        return IOUtils.toString(in);
     }
 
 }



Mime
View raw message