lol
This commit is contained in:
commit
613bef2496
108 changed files with 8397 additions and 0 deletions
28
src/zutil/test/UpdateClientTest.java
Normal file
28
src/zutil/test/UpdateClientTest.java
Normal file
|
|
@ -0,0 +1,28 @@
|
|||
package zutil.test;
|
||||
|
||||
import zutil.ProgressListener;
|
||||
import zutil.network.UpdateClient;
|
||||
import zutil.network.Zupdater;
|
||||
|
||||
public class UpdateClientTest implements ProgressListener{
|
||||
public static void main(String[] args){
|
||||
UpdateClientTest client = new UpdateClientTest();
|
||||
client.start();
|
||||
}
|
||||
|
||||
public void start(){
|
||||
try {
|
||||
UpdateClient client = new UpdateClient("localhost", 2000, "client");
|
||||
client.setProgressListener(new Zupdater());
|
||||
//client.setProgressListener(this);
|
||||
client.update();
|
||||
client.close();
|
||||
} catch (Exception e) {
|
||||
e.printStackTrace();
|
||||
}
|
||||
}
|
||||
|
||||
public void progressUpdate(Object source, Object info, double percent) {
|
||||
System.out.println(info+": "+percent+"%");
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue