⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 entitymessage.java

📁 用Java写的彩信的程序。包括wsp/mime/mms几部分。
💻 JAVA
字号:
/* 
 * JVending - J2ME MMS Client
 *
 * Distributed under Apache style software license included with the source code.
 */

package org.jvending.messaging.mime;

import java.util.Hashtable;
import java.util.Vector;
import org.jvending.messaging.IMessage;

/**
 * @author Shane Isbell
 * @version 1.0.0a
 * @created 04/03/27
 */

public class EntityMessage implements IMessage {

    private Hashtable hashtable = new Hashtable();

    private Vector entitiesBody = new Vector();

    public String getHeader(String headerName) { 
        return (String) hashtable.get(headerName);
    }

    public void setHeader(String headerName, String headerValue) throws NullPointerException { 
        hashtable.put(headerName, headerValue);
    }

    public Vector getEntityBodies() {
        return entitiesBody;
    }

    public void setEntityBody(EntityBody entityBody) {
        entitiesBody.add(entityBody);
    }

}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -