Welcome![Sign In][Sign Up]
Location:
Search - catch

Search list

[J2MESMS扩展配置.rar

Description:

1、将jre文件夹复制到你本机所在的JDK下覆盖掉全部jre文件夹

2、将lib文件夹复制到你项目所在的lib,添加对应lib


import org.smslib.IOutboundMessageNotification;
import org.smslib.Library;
import org.smslib.MessageEncodings;
import org.smslib.MessageProtocols;
import org.smslib.OutboundMessage;
import org.smslib.Service;
import org.smslib.modem.SerialModemGateway;
import java.util.List;


public class SendSms {
    public SendSms() {
    }


    public void sendSMS(String[] phoneNumber) throws Exception {
        Service srv;
        OutboundMessage msg;

        OutboundNotification outboundNotification = new OutboundNotification();

        srv = new Service();
        SerialModemGateway gateway = new SerialModemGateway("modem.com1",
                "COM1", 9600, null, null);
        gateway.setInbound(true);
        gateway.setOutbound(true);
        gateway.setSimPin("0000");
        gateway.setOutboundNotification(outboundNotification);
        gateway.setProtocol(MessageProtocols.PDU);
        srv.addGateway(gateway);

        try {
            srv.startService();

            for (int i = 0; i < phoneNumber.length; i++) {
                msg = new OutboundMessage(phoneNumber[i], "您有会议待处理,请登陆查看!");
                msg.setEncoding(MessageEncodings.ENCUCS2);
                srv.sendMessage(msg);

            }

        } finally {
            srv.stopService();
        }
    }

    public class OutboundNotification implements IOutboundMessageNotification {
        public void process(String gatewayId, OutboundMessage msg) {
            System.out.println("Outbound handler called from Gateway: " +
                               gatewayId);
            System.out.println(msg);
        }
    }


    public static void main(String args[]) {
        SendSms app = new SendSms();
        try {
            app.doIt();
        } catch (Exception e) {
            e.printStackTrace();
        }
    }

}
 


Platform: | Size: 1040178 | Author: idhuanghao | Hits:

[FlashMXActionScript编程实例

Description: Chapter 2: Getting Started Hello World Hello World Enhanced A simple "Hello World" application that shows the basics of how to use an ActionScript 3.0 class in an application. The Enhanced version adds a name-checking feature. These examples are meant to be built from scratch, tutorial-style. The example files are provided so you can see how they should look when completed. Chapter 4: Object-Oriented Programming Geometric Shapes Uses the object-oriented concepts of class inheritance and the implementation of interfaces to provide an application that calculates values for simple geometric shapes. Chapter 5: Display Programming Sprite Arranger Adds graphical Sprite objects to a drawing area and let you manipulate their placement in the display list. Builds upon the classes from the geometric Shapes example. Chapter 6: Working with Dates and Times Simple Clock Displays a simple analog clock face using methods of the Date and flash.util.Timer classes. Chapter 7: Working with Strings ASCII Art Loads bitmap images and coverts them into ASCII character equivalents, using a number of the methods in the String class. Chapter 8: Working with Arrays Play List Demonstrates a number of methods of the Array class while building and presenting a play list of music files. Chapter 9: Handling Errors Custom Errors Presents a simple framework containing a set of custom ApplicationError classes and shows how to throw, catch, and handle such errors. Chapter 10: Using Regular Expressions Wiki Editor Uses regular expressions to convert text containing wiki-style codes into formatted HTML text. Also shows how to use regular expressions for other conversions, such as numeric calculations. Chapter 11: Working With XML RSS Viewer Reads an RSS feed and formats the entries as HTML, including hyperlinks to the stories being referenced. This example shows the powerful new E4X statements and operators in action. Chapter 13: Event Handling Alarm Clock Demonstrates how to define, dispatch, and handle custom event classes. Extends the Simple Clock application to create an Alarm Clock with specialized AlarmEvents. Chapter 14: Networking and Communications File I/O Shows how to use the FileReference class to upload files from your local disk to a remote server, and how to download files from a remote server to your local disk. Note: To run this example you will need to set the UPLOAD_URL and DOWNLOAD_URL variables in the code to the address of a web server that will accept uploads and allow downloads. Telnet Socket Connects to a Telnet server and shows how to send and read bytes from the socket connection. Note: To run this example you will need to have access to a running Telnet server. Chapter 15: Working with Geometry Display Object Transformer Uses methods of the flash.geom.Matrix class to apply multiple geometric transformations to a DisplayObject. Chapter 16: Client System Environment Capabilities Info Lists the capabilities of your current browser and operating system, by using the SystemCapabilities class and an ExternalInterface call that uses Javascript to retrieve browser properties. Chapter 19: Using the External API IntrovertIM_CSharp IntrovertIM_HTML A tiny instant messenger application the uses the flash.external.ExternalInterface class to send messages between a Flex/ActionScript application and an external application. Two versions are provided. One uses HTML and Javascript for the external application, and the other uses C#.
Platform: | Size: 458790 | Author: swj_tommy@tom.com | Hits:

[JSP/JavaJava聊天室程序

Description: 这个是服务器 import java.awt.*; import java.awt.event.*; import java.net.*; import javax.swing.*; public class UDPServerDemo extends JFrame{ int port=2345; //端口号 public UDPServerDemo(){ try{ byte[] buffer=new byte[256]; //缓冲区数组 DatagramSocket socket=new DatagramSocket(port); //实例化数据报Socket DatagramPacket packet; System.out.println("Server start..."); //输出运行信息 while (true){ packet=new DatagramPacket(buffer,buffer.length); //实例化数据报 socket.receive(packet); //接受请求 InetAddress target=packet.getAddress(); System.out.println("Received from"+target); //输出请求地址 int port=packet.getPort(); //得到接收端口 byte[] message="This is server,Who are you?".getBytes(); //服务器返回信息 packet=new DatagramPacket(message,message.length,target,port); //实例化数据报 socket.send(packet); //发送数据报 } } catch (Exception ex){ ex.printStackTrace(); //输出出错信息 } } public static void main(String[] args){ new UDPServerDemo(); } }
Platform: | Size: 1095119 | Author: 594353482@qq.com | Hits:

[DirextXMeetingRecorder

Description: 秘书用会议记录软件,协助秘书做会议记录。秘书在开会的过程需要做会议记录,在有听不清楚或是跟不上的地方按热键在文档中打个标记,会议结束后,软件会自动调用会议的mp3录音,供秘书校对记录。-Secretary of the software with the record of the meeting to assist the Clerk to do the minutes. The Secretary of the course of the meeting record of the meeting needs to be done, when there did not catch or keep up with the local press hotkey to play markers in the document, after the meeting, the software will automatically call the meeting of the mp3 recordings for the Secretary of the proof-reading record.
Platform: | Size: 333772 | Author: 黑铁 | Hits:

[Process-ThreadWinsockIOCP_demo

Description: 用于大量socket连接时使用IOCP捕获连接关闭事件以便释放资源的程序。可以解决winsock的AsyncSelect对句柄个数的限制问题- Uses in when the massive socket connection uses IOCP to catch the connection closure event in order to release resources procedure. May solve the winsock AsyncSelect 瀵瑰彞 handle integer limit problem
Platform: | Size: 50176 | Author: 站长 | Hits:

[OS programSPwdSpyDemo_Src

Description: 一个查看密码的spy 扩展程序,推荐下载,非常酷--A spy extent program which can catch the password, recommend!
Platform: | Size: 385024 | Author: 站长 | Hits:

[Graph programzzyCPic

Description: 一个在W2000及以上版本使用的捕图工具.类似QQ的捕图功能,但比之更流畅.-in a W2000 and above the catch Tool. Similar QQ catch map function, but more than fluent.
Platform: | Size: 297984 | Author: 钟志勇 | Hits:

[Mathimatics-Numerical algorithmszgf

Description: 计算方法的追赶法-catch up with the calculation method
Platform: | Size: 1024 | Author: 陈海强 | Hits:

[Mathimatics-Numerical algorithms朗格朗日

Description: 这是一个追赶法的算法-This is a law to catch up with the algorithm
Platform: | Size: 1024 | Author: 船长 | Hits:

[Linux-Unixcatch

Description: 自己编的linux下的网络监控程序源码,可以监视局域网上的数据包。-own series under linux network monitoring program source code, can monitor LAN data packets.
Platform: | Size: 3072 | Author: 田克 | Hits:

[GUI Develop超级玛莉追赶鼠标源代码

Description: 超级玛莉追赶鼠标源代码,这个对游戏开发可能有点作用!-Super Mario Bros. source code to catch up with the mouse, and this game may be a bit role.
Platform: | Size: 54272 | Author: tb | Hits:

[Othergedebahe

Description: public class gedebahe { public static void main( String [] args) { for ( ) { int a=-1,b,c //b,c是分解出来的两个数 System.out.print("Please input a oushu:") //输入一个偶数 try { BufferedReader in = new BufferedReader(new InputStreamReader(System.in)) String inputLine = in.readLine() a = Integer.valueOf(inputLine).intValue() }catch (Exception exc) { System.out.println("Sorry,please input a number.") return } if (a%2!=0) { System.out.println("Sorry,please input a oushu.") return } for (b=1 b<a b++) { c=(a-b) if(isPrime(b)&&isPrime(c)) { System.out.println(a+"="+b+"+"+c) break } } } } public static boolean isPrime(int k)//方法用来判断一个数是否为偶数 { int a boolean t = true if (k==1) return t for (a=2 a<k a++) { if (k%a==0) break } if (a!=k) t=false return t-gedebahe public class (public static void main (String [] args) (for () (int a = a, b, c// b, c is the decomposition of the two several System.out.print ( "Please input a oushu : ")// input an even try (BufferedReader in = new BufferedReader (new InputStreamReader (System.in)) = String inputLine in.readLine () a = Integer.valueOf (inputLine). intValue ()) catch (Exception exc) ( System.out.println ( "Sorry, please input a number.") return) if (a 2%! = 0) (System.out.println ( "Sorry, please input a oushu.") return) for (b = a blt; a b) (c = (a-b) if (isPrime (b) isPrime (c)) (System.out.println (a "=" b "" c) break)))) public static boolean isPrime (int k)// method used to determine whether a number is even (int a boolean true if t =
Platform: | Size: 1024 | Author: 康健伟 | Hits:

[OtherSniffer_1

Description: 一个简单捕获本地TCP数据包程序源码。 适合于初学者。-a simple catch local TCP packet procedure source. Suitable for beginners.
Platform: | Size: 11264 | Author: fef | Hits:

[Menu control0528

Description: 一款不错的网站管理系统,美工不错!界面简洁大方,韩式风格! 捕侠网站管理系统 http://www.buxia.com/about http://www.buxia.com/0528.rar-one good site management system, good artists! Interface tables, folk style! Catch-xia website management system http://www.buxia.com/about http://www.buxia.com/0528.rar
Platform: | Size: 1633280 | Author: | Hits:

[Windows Develop捕捉屏幕图像

Description: 可以把屏幕内容捕捉下来,用在制作墙纸方面 ,相当于print screen键-This program can be used to catch the screen image, which can be used as wall paper. This function equals to "print screen" key.
Platform: | Size: 46080 | Author: 郑强 | Hits:

[Internet-Network2003061814184025718

Description: 一个捕获ip数据包的delhpi程序,涉及到delhpi网络编程。-a catch ip packet delhpi procedures involving delhpi network programming.
Platform: | Size: 240640 | Author: 丁鹏 | Hits:

[GUI DevelopTextTip

Description: 用VC写了一个CMFECToolTip类来实现浮动的鼠标提示功能,它能捕捉鼠标信息,当鼠标在设定的控件上停留时会显示彩色文本。-VC was a CMFECToolTip categories to achieve the floating mouse suggest function, it can catch mice information, when the mouse in the control set to stay on the text color will be displayed.
Platform: | Size: 38912 | Author: 郭经飞 | Hits:

[Windows Developftpprotocol_client

Description: 在学习FTP协议偶有感悟,于是想起了写一篇文章来总结一下自己学习的东西-I suddenly catch something when I study the FTP protocol. Therefore I want to write something to summarize my learnings.
Platform: | Size: 96256 | Author: szh | Hits:

[OtherMOCATCH

Description: mocatch -- Catch mouse button presses and releases.-mocatch-- Catch mouse button presses and releases.
Platform: | Size: 3072 | Author: 余华 | Hits:

[GUI DevelopMonitorDemo_src

Description: 模拟一个电视机,很漂亮的界面。非非非常 的漂亮漂亮-An simulator of TV sets with a beautiful interface,really catch your eye!
Platform: | Size: 57344 | Author: 李真如 | Hits:
« 1 2 3 4 5 6 7 89 10 11 12 13 ... 50 »

CodeBus www.codebus.net