Package jadex.binary

Class FramingStreamDecodingContext

    • Field Detail

      • framestack

        protected java.util.Deque<Tuple2<java.lang.Integer,​java.lang.Integer>> framestack
        The frame stack, frame start position, frame length.
    • Constructor Detail

      • FramingStreamDecodingContext

        public FramingStreamDecodingContext​(java.io.InputStream is,
                                            java.util.List<IDecoderHandler> decoderhandlers,
                                            java.util.List<ITraverseProcessor> postprocessors,
                                            java.lang.Object usercontext,
                                            java.lang.ClassLoader classloader,
                                            IErrorReporter errorreporter,
                                            SerializationConfig config)
        Creates a new DecodingContext.
        Parameters:
        classloader - The classloader.
        content - The content being decoded.
      • FramingStreamDecodingContext

        public FramingStreamDecodingContext​(java.io.InputStream is,
                                            java.util.List<IDecoderHandler> decoderhandlers,
                                            java.util.List<ITraverseProcessor> postprocessors,
                                            java.lang.Object usercontext,
                                            java.lang.ClassLoader classloader,
                                            IErrorReporter errorreporter,
                                            SerializationConfig config,
                                            int offset)
        Creates a new DecodingContext with specific offset.
        Parameters:
        content - The content being decoded.
        offset - The offset.
    • Method Detail

      • startObjectFrame

        public void startObjectFrame​(boolean fixedsize)
        Starts an object frame when using a context with framing support.
        Specified by:
        startObjectFrame in interface IDecodingContext
        Overrides:
        startObjectFrame in class AbstractDecodingContext
        Parameters:
        fixedsize - If true, use fixed-size (integer) framing. Set true if the object being framed is expected to be larger than 127 bytes (same type of object MUST use either fixed OR variable framing).