code: public static S3RecoverableFsDataOutputStream newStream(
  			final RecoverableMultiPartUpload upload,
  			final FunctionWithException<File, RefCountedFile, IOException> tmpFileCreator,
  			final long userDefinedMinPartSize) throws IOException {
  
  		checkArgument(userDefinedMinPartSize >= S3_MULTIPART_MIN_PART_SIZE);
  
  		final RefCountedBufferingFileStream fileStream = boundedBufferingFileStream(tmpFileCreator, Optional.empty());
  
  		return new S3RecoverableFsDataOutputStream(
  				upload,
  				tmpFileCreator,
  				fileStream,
  				userDefinedMinPartSize,
  				0L);
  	}
docs: ------------------------------------------------------------------------