mimetype.java

来自「用Java写的彩信的程序。包括wsp/mime/mms几部分。」· Java 代码 · 共 28 行

JAVA
28
字号
/* 
 * JVending - J2ME MMS Client
 *
 * Distributed under Apache style software license included with the source code.
 */

package org.jvending.messaging.mime;

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

public class MimeType {
    
    private String lookupContentType(int type) {
        switch(type) {
            case 3: return "text/plain";
            case 29: return "image/gif";
            case 30: return "image/jpeg";
            case 32: return "image/png";
            case 35: return "application/vnd.wap.multipart.mixed";
            default: return null;
        }
    }

}

⌨️ 快捷键说明

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