An instance of Marshaller
may be obtained by the JAXB user to serialize JAXB objects to various flavours of XML. The created XML may be:
A byte stream {@link java.io.OutputStream} | {@link #marshal(Object,java.io.OutputStream)} |
---|---|
A character stream {@link java.io.Writer} | {@link #marshal(Object,java.io.Writer)} |
This interface is used to marshall {@link org.infinispan.commands.ReplicableCommand}s, their parameters and their response values, as well as any other arbitraty Object <--> byte[] conversions, such as those used in client/server communications.
A single instance of any implementation is shared by multiple threads, so implementations need to be threadsafe, and preferably immutable. @author Manik Surtani @version 4.1
This interface is used to marshall {@link org.infinispan.commands.ReplicableCommand}s, their parameters and their response values, as well as any other arbitraty Object <--> byte[] conversions, such as those used in client/server communications.
The interface is also used by the {@link org.infinispan.loaders.CacheStore} framework to efficiently serialize datato be persisted, as well as the {@link org.infinispan.statetransfer.StateTransferManager} when serializing the cachefor transferring state en-masse.
A single instance of any implementation is shared by multiple threads, so implementations need to be threadsafe, and preferably immutable. @author Manik Surtani @version 4.1
Since the Marshaller is only responsible for doing the conversion to primitive type, does not make sense that would be supplied any type of object output to write to, as this implies that the object that it writes would be converted to bytes at some other point external to the marshaller. @author Tom Elrod
Marshaller
is the class that return the xml rappresentation of ObjectMapped. This xml representation includes all properties of ObjectMapped.
@author Gianni Baccari
@version $Revision: 1.5 $last changed by $Author: gmartone $
Although the marshal
method accepts a java.lang.Object
as its first parameter, most Marshaller
implementations cannot handle arbitrary Object
s. Instead, a object class must be registered with the marshaller, or have a common base class.
@author Arjen Poutsma
@since 3.0
@see Unmarshaller
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|