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.AbstractDecodingContextAbstractDecodingContext.IVersionedHandler, AbstractDecodingContext.VersionedHandler2, AbstractDecodingContext.VersionedHandler3, AbstractDecodingContext.VersionedHandler4
 
- 
 - 
Field SummaryFields 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.StreamDecodingContextis, offset
 - 
Fields inherited from class jadex.binary.AbstractDecodingContextclassloader, classnamepool, config, currentclassname, decoderhandlers, errorreporter, knownobjects, lastobject, postprocessors, stringpool, usercontext, versionedhandler
 
- 
 - 
Constructor SummaryConstructors 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 SummaryAll 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.StreamDecodingContextgetCurrentOffset, read, read, read, readByte
 - 
Methods inherited from class jadex.binary.AbstractDecodingContextcreateObjectId, getClassloader, getCurrentClassName, getDecoderHandlers, getErrorReporter, getLastObject, getObjectForId, getObjectId, getPostProcessors, getUserContext, pooledRead, readBoolean, readClassname, readSignedVarInt, readString, readVarInt, setCurrentClassName, setLastObject, setObjectForId, setVersion, startObjectFrame
 
- 
 
- 
- 
- 
Field Detail- 
framestackprotected java.util.Deque<Tuple2<java.lang.Integer,java.lang.Integer>> framestack The frame stack, frame start position, frame length.
 
- 
 - 
Constructor Detail- 
FramingStreamDecodingContextpublic 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.
 
 - 
FramingStreamDecodingContextpublic 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- 
startObjectFramepublic void startObjectFrame(boolean fixedsize) Starts an object frame when using a context with framing support.- Specified by:
- startObjectFramein interface- IDecodingContext
- Overrides:
- startObjectFramein 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).
 
 - 
stopObjectFramepublic void stopObjectFrame() Stops an object frame when using a context with framing support.- Specified by:
- stopObjectFramein interface- IDecodingContext
- Overrides:
- stopObjectFramein class- AbstractDecodingContext
 
 
- 
 
-