org.objectweb.jonathan.presentation.api
Interface MarshallerFactory


public interface MarshallerFactory

a marshaller factory is a factory for marshallers and unmarshallers (...)


Method Summary
 Marshaller newMarshaller()
          Returns a new marshaller.
 UnMarshaller newUnMarshaller(Chunk chunk, int read)
          Returns a new unmarshaller, using the provided chunk(s) as a data source.
 UnMarshaller newUnMarshaller(ChunkProvider provider)
          Returns a new unmarshaller, using the provided chunk provider as a data source.
 

Method Detail

newMarshaller

public Marshaller newMarshaller()
Returns a new marshaller.

Returns:
a new marshaller.

newUnMarshaller

public UnMarshaller newUnMarshaller(ChunkProvider provider)
Returns a new unmarshaller, using the provided chunk provider as a data source.

Parameters:
provider - a chunk provider.
Returns:
a new unmarshaller.

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.

Parameters:
chunk - a (chain of) chunk(s)
read - the number of bytes already read from the message.
Returns:
an unmarshaller.