public interface WriteContext extends Context, WriteBuffer
TypeHandler4 during marshaling
and provides methods to marshal objects.| Modifier and Type | Method and Description |
|---|---|
ReservedBuffer |
reserve(int length)
reserves a buffer with a specific length at the current
position, to be written in a later step.
|
void |
writeObject(java.lang.Object obj)
makes sure the object is stored and writes the ID of
the object to the context.
|
void |
writeObject(TypeHandler4 handler,
java.lang.Object obj)
writes sub-objects, in cases where the
TypeHandler4 is known. |
objectContainer, transactionwriteByte, writeBytes, writeInt, writeLongvoid writeObject(java.lang.Object obj)
WriteBuffer method instead.obj - the object to write.void writeObject(TypeHandler4 handler, java.lang.Object obj)
TypeHandler4 is known.handler - typehandler to be used to write the object.obj - the object to writeReservedBuffer reserve(int length)
length - the length to be reserved.