Download the specified URL to a file.
Download the specified URL to a file.
The URL
File to receive the output. If the file exists, it is overwritten. If the file does not exist, it is created. If any of the directories in the path do not exist, they are created.
The concurrent execution content to use
A Future
of the path.
Download the specified URL to a file.
Download the specified URL to a file.
The string containing the URI/URL
File to receive the output. If the file exists, it is overwritten. If the file does not exist, it is created. If any of the directories in the path do not exist, they are created.
The concurrent execution content to use
a Future
of the path
Download the specified URL to a file.
Download the specified URL to a file.
The grizzled.net.URL
Path of file to receive the output. If the file exists, it is overwritten. If the file does not exist, it is created. If any of the directories in the path do not exist, they are created.
The concurrent execution content to use
a Future
of the path
Download the specified URL to a file.
Download the specified URL to a file.
The java.net.URL
Path of file to receive the output. If the file exists, it is overwritten. If the file does not exist, it is created. If any of the directories in the path do not exist, they are created.
The concurrent execution content to use
a Future
of the path
Download the specified URL to a file.
Download the specified URL to a file.
The string containing the URI/URL
Path of file to receive the output. If the file exists, it is overwritten. If the file does not exist, it is created. If any of the directories in the path do not exist, they are created.
The concurrent execution content to use
a Future
of the path
Download the specified URL to a file.
Download the specified URL to a file. The name of the file is taken from the URL, if possible, or generated otherwise.
The grizzled.net.URL
The concurrent execution content to use
a Future
of the file to which the download was written
Download the specified URL to a file.
Download the specified URL to a file. The name of the file is taken from the URL, if possible, or generated otherwise.
The java.net.URL
The concurrent execution content to use
a Future
of the file to which the download was written
Download the specified URL to a file.
Download the specified URL to a file. The name of the file is taken from the URL, if possible, or generated otherwise.
The string containing the URI/URL
The concurrent execution content to use
a Future
of the file to which the download was written
Execute a block of code with a downloaded, temporary file.
Execute a block of code with a downloaded, temporary file. The specified URL is downloaded to a file, the file is passed to the block, and when the block exits, the file is removed.
Note: This function is synchronous, waiting for the underlying
Future
objects using a timeout specified by the caller. For
asynchronous operations, use download()
.
the URL
the timeout, as a duration.
the block to execute
The concurrent execution content to use
Failure(error)
on error. Success(t)
, where t
is what the
block returns, on success.
Execute a block of code with a downloaded, temporary file.
Execute a block of code with a downloaded, temporary file. The specified URL is downloaded to a file, the file is passed to the block, and when the block exits, the file is removed.
Note: This function is synchronous, waiting for the underlying
Future
objects using a timeout specified by the caller. For
asynchronous operations, use download()
.
the java.net.URL
the timeout, as a duration.
the block to execute
The concurrent execution content to use
Failure(error)
on error. Success(t)
, where t
is what the
block returns, on success.
Execute a block of code with a downloaded, temporary file.
Execute a block of code with a downloaded, temporary file. The specified URL is downloaded to a file, the file is passed to the block, and when the block exits, the file is removed.
Note: This function is synchronous, waiting for the underlying
Future
objects using a timeout specified by the caller. For
asynchronous operations, use download()
.
the URL
the timeout, as a duration.
the block to execute
The concurrent execution content to use
Failure(error)
on error. Success(t)
, where t
is what the
block returns, on success.
URL-related utility methods.