📄 startjsom.java
字号:
package fi.javasom.jsom;
/**
* Starts JSom from console.
*
* Copyright (C) 2001 Tomi Suuronen
*
* @version 1.0
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
import fi.javasom.jsom.*;
import java.io.*;
public class StartJSOM
{
private File file;
private static StartJSOM start;
/*
* Constructor.
*/
public StartJSOM(String absolutePath)
{
notification();
try
{
file = new File(absolutePath);
if(file.isFile())
{
JSom main = new JSom(file);
}
}
catch(Exception e)
{
System.out.println("hip "+e.getMessage());
}
}
/*
* Starts JSom from console.
* @param String[] - first argument is the file for the instructions.
*/
public static void main(String[] args)
{
start = new StartJSOM(args[0]);
}
/*
* Prints out the copyright information.
*/
private void notification()
{
System.out.println("JSOM and Clusoe (javasom package)");
System.out.println("Versions 1.0");
System.out.println("Copyright (C) 2001 Tomi Suuronen");
System.out.println("tomi.suuronen@iki.fi");
System.out.println("");
System.out.println("This program comes with ABSOLUTELY NO WARRANTY.");
System.out.println("This is free software, and you are welcome to");
System.out.println("redistribute it under certain conditions. See");
System.out.println("the GNU General Public License for more details.");
System.out.println("(gpl.txt)");
System.out.println("");
System.out.println("This product includes software developed by the");
System.out.println("Apache Software Foundation (Xerces, Xalan and FOP).");
System.out.println("(asl.txt and http://www.apache.org/)");
System.out.println("");
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -