Java 类org.apache.mina.filter.codec.demux.MessageEncoder 实例源码

项目:iot-plat    文件:MessageCodecRegister.java   
public static void addEncoder(Class t, MessageEncoder encoder){
    if (encoderMap == null ){
        encoderMap = new HashMap<Class, MessageEncoder>();
    }
    encoderMap.put(t, encoder);
}
项目:iot-plat    文件:MessageCodecRegister.java   
public static Map<Class, MessageEncoder> getEncoderMap(){
    return encoderMap;
}