J2ME中文教程 7 开发无线网络应用程序[36]

[入库:2006年2月23日] [更新:2007年3月24日]

本文简介:

   parent.destroyApp(true);

  }

 }

 /**

  * Close all open streams

  */

 public void stop() {

  try {

   stop = true;

   if (sender != null) {

    sender.stop();

   }

   if (is != null) {

    is.close();

   }

   if (os != null) {

    os.close();

   }

   if (sc != null) {

    sc.close();

   }

  } catch (IOException ioe) {

  }

 }

}

package socket;

import javax.microedition.midlet.*;

import javax.microedition.io.*;

import javax.microedition.lcdui.*;

import java.io.*;

public class Sender extends Thread {

 private OutputStream os;

 private String message;

 public Sender(OutputStream os) {

本文关键:J2ME中文教程 7 开发无线网络应用程序
 

本站最佳浏览方式为 分辨率 1024x768 IE 6.0(或更高版本的 IE浏览器)

go top