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

📄 mimemessage.java

📁 java与模式 一书的源码
💻 JAVA
字号:
package com.javapatterns.builder.message;

/**
 * This is a class used to represent raw MIME e-mail messages.  If this
 * program is expanded to receive messages in formats other than MIME,
 * then this will probably become an abstract class with a subclass for
 * each type of e-mail format that can be received.
 */
public class MIMEMessage {
    private byte[] rawMessage;

    /**
     * Constructor
     * @param msg A byte array containing a raw unprocessed e-mail
     * message. 
     */
    public MIMEMessage(byte[] msg) {
        rawMessage = msg;
    } // constructor(byte[])

    /**
     * Return the raw bytes of an unprocessed e-mail message.
     */
    byte[] getMessage() {
        return rawMessage;
    } // getMessage()
} // class MIMEMessage

⌨️ 快捷键说明

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