|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.fudgemsg.mapping.FudgeObjectWriter
public class FudgeObjectWriter
Serialises Java objects to a target Fudge message stream.
Constructor Summary | |
---|---|
FudgeObjectWriter(FudgeMsgWriter messageWriter)
Creates a new FudgeObjectWriter around a FudgeMsgWriter . |
Method Summary | ||
---|---|---|
void |
close()
Closes the underlying target stream. |
|
FudgeContext |
getFudgeContext()
Returns the underlying FudgeContext . |
|
FudgeMsgWriter |
getMessageWriter()
Returns the underlying message target. |
|
FudgeSerializationContext |
getSerialisationContext()
Returns the current FudgeSerializationContext . |
|
|
write(T obj)
Serialises a Java object to a Fudge message and writes it to the target stream. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public FudgeObjectWriter(FudgeMsgWriter messageWriter)
FudgeObjectWriter
around a FudgeMsgWriter
.
messageWriter
- the target for Fudge messagesMethod Detail |
---|
public void close()
public FudgeContext getFudgeContext()
FudgeContext
. This will be the context of the FudgeMsgWriter
being used.
FudgeContext
public FudgeSerializationContext getSerialisationContext()
FudgeSerializationContext
. This is associated with the same FudgeContext
as
the target message stream.
FudgeSerialisationContext
public FudgeMsgWriter getMessageWriter()
FudgeMsgWriter
public <T> void write(T obj)
T
- type of the Java objectobj
- the object to write
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |