Package com.bj58.spat.gaea.protocol.compress

Examples of com.bj58.spat.gaea.protocol.compress.CompressBase.zip()


        CompressBase compress = CompressBase.getInstance(this.getCompressType());
       
        this.sdpType = SDPType.getSDPType(this.sdpEntity);
        byte[] sdpData = serialize.serialize(this.sdpEntity);
       
        sdpData = compress.zip(sdpData);
        int protocolLen = HEAD_STACK_LENGTH + sdpData.length;
        this.setTotalLen(protocolLen);
       
        byte[] data = new byte[protocolLen];
        data[0] = Protocol.VERSION;
View Full Code Here


        //数据加密
        if(this.getSDPType().getNum() != 5 && rights && desKey != null){
          sdpData = DESCoderHelper.getInstance().encrypt(sdpData, desKey);//DES加密数据
        }
       
        sdpData = compress.zip(sdpData);
        int protocolLen = HEAD_STACK_LENGTH + sdpData.length;
        this.setTotalLen(protocolLen);
       
        byte[] data = new byte[protocolLen];
        data[0] = Protocol.VERSION;
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.