public AmazonWebServiceResponse<String> handle(HttpResponse response) throws Exception {
        AmazonWebServiceResponse<String> awsResponse = parseResponseMetadata(response);

        int bytesRead;
        byte[] buffer = new byte[1024];
        StringBuilder builder = new StringBuilder();
        InputStream content = response.getContent();
        while ((bytesRead = content.read(buffer)) > 0) {
            builder.append(new String(buffer, 0, bytesRead, StringUtils.UTF8));
        }
        awsResponse.setResult(builder.toString());

        return awsResponse;
    }
public AmazonWebServiceResponse < String > handle ( HttpResponse response ) throws Exception { AmazonWebServiceResponse < String > awsResponse = parseResponseMetadata ( response ) ; int bytesRead ; byte [ ] buffer = new byte [ 1024 ] ; StringBuilder builder = new StringBuilder ( ) ; InputStream content = response . getContent ( ) ; while ( ( bytesRead = content . read ( buffer ) ) > 0 ) { builder . append ( new String ( buffer , 0 , bytesRead , StringUtils . UTF8 ) ) ; } awsResponse . setResult ( builder . toString ( ) ) ; return awsResponse ; }
/* (non-Javadoc)
@see com.amazonaws.http.HttpResponseHandler#handle(com.amazonaws.http.HttpResponse)