一个即时消息系统的源码(J2ME编程部分)。

源代码在线查看: textevent.java

软件大小: 27 K
上传用户: zln12345
关键词: J2ME 即时消息
下载地址: 免注册下载 普通下载 VIP

相关代码

				package org.kxml.parser;								import java.io.IOException;								import org.kxml.*;												/** A class for events indicating character data like 				    "normal" text or ignorable whitespace. */								public class TextEvent extends ParseEvent {								    int type;				    String text;								    				    public TextEvent (int type, String text) {					this.type = type;					this.text = text;				    }																    /** returns the actual character data as String.   */								    public String getText () {					return text;				    }												    /** returns Xml.TEXT_EVENT */								    public int getType () {					return type;				    }																    public boolean endCheck (StartTag start) {									if (type != Xml.WHITESPACE)					    throw new RuntimeException ("unexpected text: '"+text+"'");									return false;				    }																    public String toString () {					return text;				    }								}											

相关资源