You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cxf.apache.org by Glen Mazza <gl...@verizon.net> on 2007/10/14 19:42:31 UTC
Re: svn commit: r584553 - in
/incubator/cxf/branches/jliu/distribution: ./ bundle/ manifest/
src/main/release/samples/restful_jaxrs/src/demo/jaxrs/client/
src/main/release/samples/restful_jaxrs/src/demo/jaxrs/server/
Am Sonntag, den 14.10.2007, 15:11 +0000 schrieb jliu@apache.org:
> Author: jliu
> Date: Sun Oct 14 08:11:01 2007
> New Revision: 584553
>
> ==============================================================================
> --- incubator/cxf/branches/jliu/distribution/src/main/release/samples/restful_jaxrs/src/demo/jaxrs/client/Client.java (original)
> +++ incubator/cxf/branches/jliu/distribution/src/main/release/samples/restful_jaxrs/src/demo/jaxrs/client/Client.java Sun Oct 14 08:11:01 2007
> @@ -19,9 +19,13 @@
>
> + 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();
Are you sure here? AFAICT[1] bos.getOut() should be null or empty after
you call bos.close().
[1]
http://svn.apache.org/viewvc/incubator/cxf/trunk/api/src/main/java/org/apache/cxf/io/CachedOutputStream.java?revision=583575&view=markup
Regards,
Glen
> }
>
> }