Package com.fineqt.fpb.lib.codec

Examples of com.fineqt.fpb.lib.codec.DecodeResult


        }

        @Override
        protected DecodeResult postDecode(DecodeContext cxt, IReadableBitBuffer input,
                DecodeParameters paras, DecodeResult result) throws DecodeException {
            DecodeResult ret = super.postDecode(cxt, input, paras, result);
            PFieldExt fieldMeta = (PFieldExt)paras.getItemFieldMeta();
            //已解码Header的处理
            if (fieldMeta != null && fieldMeta.getFieldID() == HTTP_MESSAGE__HEADERS) {
                IFactory factory = getPModule().getFactory();
                CommonContext.FieldStackMap fieldStack = cxt.getFieldStackMap();
View Full Code Here


        }

        @Override
        protected DecodeResult postDecode(DecodeContext cxt, IReadableBitBuffer input,
                DecodeParameters paras, DecodeResult result) throws DecodeException {
            DecodeResult ret = super.postDecode(cxt, input, paras, result);
            if (ret.getValue() != null) {
                //设置chunkLength
                IContainerValue value = (IContainerValue)ret.getValue();
                IValue lenValue = value.getField(HTTP_CHUNK_LENGTH_LINE__CHUNK_LENGTH);
                IIntegerValue intValue = (IIntegerValue)cxt.getFieldStackMap().peekField(
                        StackFields.CHUNK_LENGTH);
                if (intValue == null) {
                    intValue = getPModule().getFactory().createInteger();
View Full Code Here

TOP

Related Classes of com.fineqt.fpb.lib.codec.DecodeResult

Copyright © 2018 www.massapicom. 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.