Package gaiasky.util

Class DownloadHelper

java.lang.Object
gaiasky.util.DownloadHelper

public class DownloadHelper
extends java.lang.Object
Contains utilities to download files
  • Constructor Summary

    Constructors
    Constructor Description
    DownloadHelper()  
  • Method Summary

    Modifier and Type Method Description
    static com.badlogic.gdx.Net.HttpRequest downloadFile​(java.lang.String url, com.badlogic.gdx.files.FileHandle to, ProgressRunnable progressDownload, ProgressRunnable progressHashResume, ChecksumRunnable finish, java.lang.Runnable fail, java.lang.Runnable cancel)  
    static void sendRequest​(com.badlogic.gdx.Net.HttpRequest request, java.lang.String url, boolean resume, com.badlogic.gdx.files.FileHandle to, long startSize, ProgressRunnable progressDownload, ProgressRunnable progressHashResume, ChecksumRunnable finish, java.lang.Runnable fail, java.lang.Runnable cancel)  

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • DownloadHelper

      public DownloadHelper()
  • Method Details

    • downloadFile

      public static com.badlogic.gdx.Net.HttpRequest downloadFile​(java.lang.String url, com.badlogic.gdx.files.FileHandle to, ProgressRunnable progressDownload, ProgressRunnable progressHashResume, ChecksumRunnable finish, java.lang.Runnable fail, java.lang.Runnable cancel)
    • sendRequest

      public static void sendRequest​(com.badlogic.gdx.Net.HttpRequest request, java.lang.String url, boolean resume, com.badlogic.gdx.files.FileHandle to, long startSize, ProgressRunnable progressDownload, ProgressRunnable progressHashResume, ChecksumRunnable finish, java.lang.Runnable fail, java.lang.Runnable cancel)