Package fi.evolver.script
Class Download
java.lang.Object
fi.evolver.script.Download
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic byte[]contentBytes(URI uri) static StringcontentString(URI uri) static voidstatic PathintoTempFile(URI uri) Downloads a file from the provided URL to a temporary file.
-
Constructor Details
-
Download
public Download()
-
-
Method Details
-
intoTempFile
Downloads a file from the provided URL to a temporary file. The temporary file is scheduled for deletion on JVM exit.- Parameters:
uri-- Returns:
- Path to the downloaded temporary file
-
intoFile
-
contentString
-
contentBytes
-