public static HttpURLConnection resize ( final URI uri , final FileRequestOptions fileOptions , final OperationContext opContext , final AccessCondition accessCondition , final Long newFileSize ) throws IOException , URISyntaxException , StorageException { final HttpURLConnection request = setFileProperties ( uri , fileOptions , opContext , accessCondition , null ) ; if ( newFileSize != null ) { request . setRequestProperty ( FileConstants . CONTENT_LENGTH_HEADER , newFileSize . toString ( ) ) ; } return request ; }
Constructs a HttpURLConnection to set the file s size Sign with zero length specified .