Package jadex.binary
Class DataOutputEncodingContext
- java.lang.Object
-
- jadex.binary.AbstractEncodingContext
-
- jadex.binary.DataOutputEncodingContext
-
- All Implemented Interfaces:
IEncodingContext
,IRootObjectContext
,IUserContextContainer
public class DataOutputEncodingContext extends AbstractEncodingContext
Context for encoding (serializing) an object in a binary format.
-
-
Field Summary
Fields Modifier and Type Field Description protected java.io.DataOutput
dato
The binary output-
Fields inherited from class jadex.binary.AbstractEncodingContext
classidcache, classloader, classnamepool, ignorewriteclass, knownobjects, lastinputobject, nonanonclasscache, preprocessors, rootobject, stringpool, usercontext, writtenbytes
-
-
Constructor Summary
Constructors Constructor Description DataOutputEncodingContext(java.io.DataOutput dato, java.lang.Object rootobject, java.lang.Object usercontext, java.util.List<ITraverseProcessor> preprocessors, java.lang.ClassLoader classloader, SerializationConfig config)
Creates an encoding context.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
write(byte[] b)
Writes a byte array, appending it to the buffer.void
writeByte(byte b)
Writes a byte.-
Methods inherited from class jadex.binary.AbstractEncodingContext
createObjectId, getClassLoader, getNonInnerClassCache, getObjectId, getPreprocessors, getRootObject, getUserContext, getWrittenBytes, isIgnoreNextClassWrite, pooledWrite, setIgnoreNextClassWrite, setInputObject, startObjectFrame, startObjectFrame, stopObjectFrame, writeBoolean, writeClass, writeClassname, writeSignedVarInt, writeString, writeVarInt
-
-
-
-
Constructor Detail
-
DataOutputEncodingContext
public DataOutputEncodingContext(java.io.DataOutput dato, java.lang.Object rootobject, java.lang.Object usercontext, java.util.List<ITraverseProcessor> preprocessors, java.lang.ClassLoader classloader, SerializationConfig config)
Creates an encoding context.- Parameters:
usercontext
- A user context.preprocessors
- The preprocessors.classloader
- The classloader.
-
-