Package net.mzalewski.goblin

Source Code of net.mzalewski.goblin.Main

package net.mzalewski.goblin;

import java.io.BufferedInputStream;
import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.io.Reader;
import java.net.MalformedURLException;
import java.net.URL;
import java.net.URLConnection;

import com.sun.org.apache.xerces.internal.util.URI.MalformedURIException;

import net.mzalewski.goblin.gui.MainWindow;
import net.mzalewski.goblin.gui.SplashScreen;
import net.mzalewski.goblin.mailbox.GMail;
import net.mzalewski.goblin.mailbox.MailHeader;
import net.mzalewski.goblin.moorhunt.hashcode.HashCode;
import net.mzalewski.goblin.moorhunt.hashcode.HashCodeInfo;
import net.mzalewski.goblin.moorhunt.mail.Servers;
import net.mzalewski.goblin.transfermanagers.DownloadManager;
import net.mzalewski.http.HttpClient;

public class Main {

  final public static String appName = "MoorHunt Linux";
  final public static String appVersion = "1.0.0";

  /**
   * @param args
   */
  public static void main(String[] args) {
    //SplashScreen.show(appName, appVersion);
   
    DownloadManager dm = DownloadManager.getInstance();
   
/*
    GMail gmail = new GMail();
    boolean a = gmail.login("kapica.aga", "nupel1");
    MailHeader[] mhs = gmail.getMailList();
    try {
      FileOutputStream fos = new FileOutputStream("log.txt");
      for (int j = 0; j < 3; ++j) {
        InputStream input = gmail.download(mhs[j]);
        BufferedInputStream reader = new BufferedInputStream(input);
        int c;
        byte[] buffer = new byte[8192];
        byte[] buf = new byte[8192];
        do {
          c = reader.read(buffer, 0, 8192);
          for (int i = 0; i < c; ++i)
            buf[i] = (byte)buffer[i];
          if (c == -1)
            break;
          fos.write(buf, 0, c);
        } while (c != -1);
      }
      gmail.logout();
      fos.close();
    } catch (FileNotFoundException e) {
    }catch (IOException e) {};
   
    // create and show main window
    MainWindow main = new MainWindow(appName, appVersion);
    main.create();

    HashCode hc = new HashCode();

    HashCodeInfo hci = hc.getInfo("<<acTkVYtGvq-e1qk7vKZDFKyEleitbgR-lWQLEv0PVVs/l25sFDBfV2vcdRlRFE" +
"ZMJyRm1AWmeJG-2jhTLxIi33sQzgkfm1QsjMe4EzCqoG3eYED06JPE/k78s2d7Wd" +
"nk1rH4EorlzfIyJFSeC-KQiN-V1vOak2eJz6iNkPZ6r-w3bZNETgv2VVkXBPXShy" +
"ReFra8bxuRKBdFJBOqHjKWXhzJYLn35z5UZs7tYCLxjoNUaz4y FzBTNPbm9Kho3f" +
"9KFaVi1U7QYfBXW4VblvSMgbhvmL6irlkh6u91wJA5p4ulg=>>");
    String pass = hci.accMirrors[1].strPassword;
    String user = hci.accMirrors[1].strUserName;
    Servers serv = hci.accMirrors[1].server;
    String test = pass + user;
    test = "dd";
    */
  }
}
 
TOP

Related Classes of net.mzalewski.goblin.Main

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.