Class Download

java.lang.Object
fi.evolver.script.Download

public class Download extends Object
  • Constructor Details

    • Download

      public Download()
  • Method Details

    • intoTempFile

      public static Path intoTempFile(URI uri)
      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

      public static void intoFile(URI uri, Path target)
    • contentString

      public static String contentString(URI uri)
    • contentBytes

      public static byte[] contentBytes(URI uri)