package getFilePkg.ui;
import java.io.IOException;
import getFilePkg.*;
import getFilePkg.config.*;
import getFilePkg.download.DownloadStat;
import getFilePkg.net.Protocol;
import getFilePkg.net.applicationprotocol.http.ApplicationProtocol;
import getFilePkg.net.applicationprotocol.http.HTTPHandler;
import javax.xml.parsers.ParserConfigurationException;
import javax.xml.transform.TransformerException;
public class GetFileUI {
public static void main(String[] args) {
/*try {
Configurer.writeConfig(true);
Configurer.writeConfig(false);
} catch (ParserConfigurationException e) {
e.printStackTrace();
} catch (TransformerException e) {
e.printStackTrace();
}*/
HTTPHandler http=new HTTPHandler();
try {
System.out.print(http.getFileSize("www.nitdgp.ac.in", "/"));
} catch (IOException e) {
// TODO Auto-generated catch block
e.printStackTrace();
} catch (Exception e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
//DownloadManager downman=new DownloadManager("test",Protocol.HTTP,"www.nitdgp.ac.in","/");
//downman.initiateDownload();
//GetFile qget=new GetFile();
//qget.download("http://172.18.18.117/KIA.do");
}
}