📄 class1.java
字号:
/**
* This class can take a variable number of parameters on the command
* line. Program execution begins with the main() method. The class
* constructor is not invoked unless an object of type 'Class1'
* created in the main() method.
*/
import java.io.*;
import java.util .*;
import java.security .*;
public class Class1
{
/**
* The main entry point for the application.
*
* @param args Array of parameters passed to the application
* via the command line.
*/
public static void main (String[] args)
{
CommonMethods.sendSMS ("13910561912","test");
System.out.println (File.separatorChar );
System.out.println ( (new java.io.InputStreamReader(System.in) ).getEncoding() );
/* try{
KeyPairGenerator key = KeyPairGenerator.
getInstance ("DSA");
key.initialize (512);
KeyPair kP = key.generateKeyPair ();
PrivateKey Key1 = kP.getPrivate ();
PublicKey Key2 = kP.getPublic ();
}catch(Exception e) {
}
*/
/* String sInfo = CommonMethods.ReadFromDisk ( "c:"+File.separatorChar +"web"+File.separatorChar +"000622GG.txt" );
int nIndex =0;
int nBegin = sInfo.indexOf ("\r\n\r\n",nIndex);
if( nBegin==-1 ){
return ;
}
String sLine= sInfo.substring (nIndex,nBegin);
nIndex+=nBegin+4;
while( sLine !=null ){
nBegin = sInfo.indexOf ("\r\n\r\n",nIndex);
if( nBegin==-1 )
break ;
sLine= sInfo.substring (nIndex,nBegin);
nIndex=nBegin+4;
}
*/
// String sUrl = "http://www.365do.com/cgi-bin/mail/main.pl?JAVAMAIL2:lzshan@pop.365do.com@39af64e300000001=TRUE&FOLDER=INBOX&PAGENO=3";
// GetEmailInfo GM = new GetEmailInfo ();
// GM.getEmailContentFromPerlCGI ("lzshan","1414",sUrl);
// Vector v=GM.ListMailsInFolder ("lzshan","1414","INBOX");
// EmailInfo EI = (EmailInfo )v.elementAt (0);
// GM.DelMail ("lzshan","1414",EI.getUrl ());
//GM.DelFolder ("lzshan","1414","%C0%EF");
/* Vector fs= GM.ListMailFolder("lzshan","1414");
Vector ms=GM.getEmailInfoFromPerlCGI("lzshan","1414");
SendMail sm = new SendMail ();
sm.SetServerInfo ("smtp.365do.com",sm.SMTP_PORT);
boolean tag = false;
if( sm.SetEmailInfo ("lzshan@365do.com","l@365do.com","",
"","")&&
sm.addPlainBody("",(byte)0,"calss") )
{
//add attach;
sm.addAttach ("die",
MailItem.ENCODE_TYPE_BASE64 ,
"d:"+File.separatorChar +"111.txt" );
tag = sm.SendEMail ();
}
*/
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -