Package jadex.binary
Class FramingStreamDecodingContext
- java.lang.Object
-
- jadex.binary.AbstractDecodingContext
-
- jadex.binary.StreamDecodingContext
-
- jadex.binary.FramingStreamDecodingContext
-
- All Implemented Interfaces:
IDecodingContext,IUserContextContainer
public class FramingStreamDecodingContext extends StreamDecodingContext
Stream decoding context that can handled framed streams.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class jadex.binary.AbstractDecodingContext
AbstractDecodingContext.IVersionedHandler, AbstractDecodingContext.VersionedHandler2, AbstractDecodingContext.VersionedHandler3, AbstractDecodingContext.VersionedHandler4
-
-
Field Summary
Fields Modifier and Type Field Description protected java.util.Deque<Tuple2<java.lang.Integer,java.lang.Integer>>framestackThe frame stack, frame start position, frame length.-
Fields inherited from class jadex.binary.StreamDecodingContext
is, offset
-
Fields inherited from class jadex.binary.AbstractDecodingContext
classloader, classnamepool, config, currentclassname, decoderhandlers, errorreporter, knownobjects, lastobject, postprocessors, stringpool, usercontext, versionedhandler
-
-
Constructor Summary
Constructors Constructor Description 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.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.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidstartObjectFrame(boolean fixedsize)Starts an object frame when using a context with framing support.voidstopObjectFrame()Stops an object frame when using a context with framing support.-
Methods inherited from class jadex.binary.StreamDecodingContext
getCurrentOffset, read, read, read, readByte
-
Methods inherited from class jadex.binary.AbstractDecodingContext
createObjectId, getClassloader, getCurrentClassName, getDecoderHandlers, getErrorReporter, getLastObject, getObjectForId, getObjectId, getPostProcessors, getUserContext, pooledRead, readBoolean, readClassname, readSignedVarInt, readString, readVarInt, setCurrentClassName, setLastObject, setObjectForId, setVersion, startObjectFrame
-
-
-
-
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:
startObjectFramein interfaceIDecodingContext- Overrides:
startObjectFramein classAbstractDecodingContext- 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).
-
stopObjectFrame
public void stopObjectFrame()
Stops an object frame when using a context with framing support.- Specified by:
stopObjectFramein interfaceIDecodingContext- Overrides:
stopObjectFramein classAbstractDecodingContext
-
-