public long getResponseAsFile ( File f ) throws HelloSignException { long bytesWritten = 0 ; try { bytesWritten = Files . copy ( lastResponseStream , f . toPath ( ) , StandardCopyOption . REPLACE_EXISTING ) ; } catch ( Exception e ) { throw new HelloSignException ( e ) ; } return bytesWritten ; }
Write the last response to a file .