activetest.java~13~
来自「短信网关发送接受平台。」· JAVA~13~ 代码 · 共 45 行
JAVA~13~
45 行
package smscenter;/** * <p>Title: </p> * <p>Description: </p> * <p>Copyright: Copyright (c) 2004</p> * <p>Company: </p> * @author unascribed * @version 1.0 */import java.io.*;public class ActiveTest extends Engine{ private BufferedOutputStream bo = null; public ActiveTest() { super("ActiveTest"); setDaemon(true); } public ActiveTest(OutputStream os){ super("ActiveTest"); setDaemon(true); bo = new BufferedOutputStream(os); } public void run(){ String activeTest = "<CMPP_ACTIVE_TEST></CMPP_ACTIVE_TEST>"; byte[] bytes = null; bytes = activeTest.getBytes() ; while(isRunning() ){ if(Config.IfConnected){ try{ bo.write(bytes) ; }catch(Exception e){ e.printStackTrace() ; } } try{ }catch(Exception e){ e.printStackTrace() ; } } } public static void main(String[] args) { ActiveTest activeTest1 = new ActiveTest(); }}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?