public HttpConnection setRequestBody ( final InputStream input , final long inputLength ) { try { return setRequestBody ( new InputStreamWrappingGenerator ( input , inputLength ) , inputLength ) ; } catch ( IOException e ) { logger . log ( Level . SEVERE , "Error copying input stream for request body" , e ) ; throw new RuntimeException ( e ) ; } }
Set the InputStream of request body data of known length to be sent to the server .