Package getFilePkg.ui

Source Code of getFilePkg.ui.GetFileUI

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");
  }

}
TOP

Related Classes of getFilePkg.ui.GetFileUI

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.