Package jadex.binary
Class FramingStreamDecodingContext
java.lang.Object
jadex.binary.AbstractDecodingContext
jadex.binary.StreamDecodingContext
jadex.binary.FramingStreamDecodingContext
- All Implemented Interfaces:
IDecodingContext
,jadex.common.transformation.traverser.IUserContextContainer
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
FieldsModifier and TypeFieldDescriptionThe 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
ConstructorsConstructorDescriptionFramingStreamDecodingContext
(InputStream is, List<IDecoderHandler> decoderhandlers, List<jadex.common.transformation.traverser.ITraverseProcessor> postprocessors, Object usercontext, ClassLoader classloader, jadex.common.transformation.traverser.IErrorReporter errorreporter, SerializationConfig config) Creates a new DecodingContext.FramingStreamDecodingContext
(InputStream is, List<IDecoderHandler> decoderhandlers, List<jadex.common.transformation.traverser.ITraverseProcessor> postprocessors, Object usercontext, ClassLoader classloader, jadex.common.transformation.traverser.IErrorReporter errorreporter, SerializationConfig config, int offset) Creates a new DecodingContext with specific offset. -
Method Summary
Modifier and TypeMethodDescriptionvoid
startObjectFrame
(boolean fixedsize) Starts an object frame when using a context with framing support.void
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 Details
-
framestack
The frame stack, frame start position, frame length.
-
-
Constructor Details
-
FramingStreamDecodingContext
public FramingStreamDecodingContext(InputStream is, List<IDecoderHandler> decoderhandlers, List<jadex.common.transformation.traverser.ITraverseProcessor> postprocessors, Object usercontext, ClassLoader classloader, jadex.common.transformation.traverser.IErrorReporter errorreporter, SerializationConfig config) Creates a new DecodingContext.- Parameters:
classloader
- The classloader.content
- The content being decoded.
-
FramingStreamDecodingContext
public FramingStreamDecodingContext(InputStream is, List<IDecoderHandler> decoderhandlers, List<jadex.common.transformation.traverser.ITraverseProcessor> postprocessors, Object usercontext, ClassLoader classloader, jadex.common.transformation.traverser.IErrorReporter errorreporter, SerializationConfig config, int offset) Creates a new DecodingContext with specific offset.- Parameters:
offset
- The offset.content
- The content being decoded.
-
-
Method Details
-
startObjectFrame
public void startObjectFrame(boolean fixedsize) Starts an object frame when using a context with framing support.- Specified by:
startObjectFrame
in interfaceIDecodingContext
- Overrides:
startObjectFrame
in 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:
stopObjectFrame
in interfaceIDecodingContext
- Overrides:
stopObjectFrame
in classAbstractDecodingContext
-