Gabriel Tofvesson 62b8c3b31b Tabs :D
2016-10-30 16:25:59 +01:00

36 lines
758 B
Java

package Launcher.net;
import java.io.IOException;
import java.net.URL;
import java.net.URLConnection;
/**
* Simple thing for updating launcher
*/
public class Updater {
private static Updater instance;
private URLConnection conn;
private Updater(String URL) throws IOException {
conn = new URL(URL).openConnection();
}
public void downloadStuff(){
//TODO: Download lots of stuff
}
public void downloadMoreStuff(){
//TODO: Download more stuff
}
public void downloadEvenMoreStuff(){
//TODO: Download even more stuff
}
public static Updater getInstance(String url) throws IOException {
if(instance==null) instance = new Updater(url);
return instance;
}
}