cxf-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Glen Mazza <glen.ma...@verizon.net>
Subject 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/
Date Sun, 14 Oct 2007 17:42:31 GMT
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


>      }
>  
>  }



Mime
View raw message