Package

Source Code of CrushFTP

import java.io.RandomAccessFile;

import crushftp.handlers.Common;
import java.text.SimpleDateFormat;
import java.util.Date;
import java.io.*;
import java.io.*;
import java.net.*;
import java.util.jar.*;

public class CrushFTP
{
  public static void main( String[] args )
  {
    try
    {
      Class.forName("crushftp.server.ServerSessionHTTP");
      Class.forName("crushftp.server.ServerSessionNotMacXML");
    }
    catch(Exception e)
    {
      e.printStackTrace();
    }
    CrushFTP cftp = new CrushFTP ();
    javax.imageio.spi.IIORegistry.getDefaultInstance().registerApplicationClasspathSpis();
    javax.imageio.ImageIO.scanForPlugins();
    Common.initSystemProperties(true);
    cftp.launch(args);
  }
  public void launch(String[] args)
  {
    if (args != null)
    {
      if (args.length > 0)
      {
        if (args[0].toUpperCase().startsWith("-D"))
        {
          System.setProperty("java.awt.headless", "true");
          new CrushFTPD();
        }
        else if (args[0].toUpperCase().equals("-P"))
        {
          System.out.println(new Common().encode_pass(args[2],args[1]));
        }
      }
      else
        new CrushFTPGUI();
    }
    else
      new CrushFTPGUI();
  }
}

TOP

Related Classes of CrushFTP

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.