public ToFileProtocolCodeFactory() {

    super.addMessageEncoder(RequstNetwork.class, RequstNetworkEncoder.class);
    // 文件上传
    super.addMessageEncoder(
        ToServerPowerSpectrumAndAbnormalPoint.class,
        ToServerPowerSpectrumAndAbnormalPointEncoder.class);
  }
 public XbeeProtocolFactory() {
   super.addMessageDecoder(IoDataReceiveDecoder.new16BitAddressDecoder());
   super.addMessageDecoder(IoDataReceiveDecoder.new64BitAddressDecoder());
   super.addMessageDecoder(new AtCommandResponseDecoder());
   super.addMessageDecoder(new AtRemoteCommandResponseDecoder());
   super.addMessageEncoder(AtCommand.class, AtCommandEncoder.class);
 }
  /** Constructs ... */
  public CHYCAProtocolCodecFactory() {
    super.addMessageDecoder(CHYCAErrorMessageDecoder.class);
    super.addMessageDecoder(CHYCAMessageDecoder.class);

    super.addMessageEncoder(CHYCAOutMessage.class, CHYCAMessageEncoder.class);
  }