org.objectweb.jeremie.presentation.std
Class StdMarshallerFactory
- MarshallerFactory
public class StdMarshallerFactory
implements MarshallerFactory
Provides a factory for creating Jeremie marshallers and unmarshallers.
protected ChunkFactory | chunk_factory - The chunk factory parameter used to form messages.
|
protected ContextFactory | context_factory - The context factory.
|
protected NamingContext | domain - The domain parameter used to encode references.
|
static Chunk | empty_chunk - An empty chunk.
|
StdMarshallerFactory(ChunkFactory chunk_factory, NamingContext domain, ContextFactory context_factory)
|
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 message) - Returns a new unmarshaller using the provided chunk provider as a data
source.
|
chunk_factory
protected ChunkFactory chunk_factory
The chunk factory parameter used to form messages.
context_factory
protected ContextFactory context_factory
The context factory.
domain
protected NamingContext domain
The domain parameter used to encode references.
empty_chunk
public static final Chunk empty_chunk
An empty chunk.
StdMarshallerFactory
public StdMarshallerFactory(ChunkFactory chunk_factory,
NamingContext domain,
ContextFactory context_factory)
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.
chunk
- a (chain of) chunk(s);read
- the number of bytes already read.
- an unmarshaller.
newUnMarshaller
public UnMarshaller newUnMarshaller(ChunkProvider message)
Returns a new unmarshaller using the provided chunk provider as a data
source.
- a new unmarshaller.