package com.artfess.ueditor.define;

import java.util.HashMap;
import java.util.Map;

public class MIMEType {

    public static final Map<String, String> types = new HashMap<String, String>() {
        private static final long serialVersionUID = -2881802098108442811L;

        {
            put("image/gif", ".gif");
            put("image/jpeg", ".jpg");
            put("image/jpg", ".jpg");
            put("image/png", ".png");
            put("image/bmp", ".bmp");
            put("video/mp4", ".mp4");
        }
    };

    public static String getSuffix(String mime) {
        return MIMEType.types.get(mime);
    }

}
