org.objectweb.jonathan.presentation.api
Interface MarshallerFactory
public interface MarshallerFactory
a marshaller factory is a factory for marshallers and unmarshallers (...)
newMarshaller
public Marshaller newMarshaller()
Returns a new marshaller.
- a new marshaller.
newUnMarshaller
public UnMarshaller newUnMarshaller(Chunk chunk,
int read)
Returns a new unmarshaller, using the provided chunk(s) as a data source.
The
read
parameters is used to initialise the number of bytes
read from the message.
chunk
- a (chain of) chunk(s)read
- the number of bytes already read from the message.
- an unmarshaller.
newUnMarshaller
public UnMarshaller newUnMarshaller(ChunkProvider provider)
Returns a new unmarshaller, using the provided chunk provider as a data
source.
provider
- a chunk provider.
- a new unmarshaller.