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 2009/02/18 19:04:42 UTC
svn commit: r745586 -
/cxf/trunk/distribution/src/main/release/samples/restful_http_binding/src/demo/restful/client/Client.java
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);
}
}