public class StdMarshallerFactory extends Object implements org.objectweb.jonathan.presentation.api.MarshallerFactory
Modifier and Type | Class and Description |
---|---|
class |
StdMarshallerFactory.StdMarshaller
StdMarshaller is an (abstract) implementation of Marshaller.
|
class |
StdMarshallerFactory.StdMarshallerL
StdMarshallerL is a little endian implementation of Marshaller
extending StdMarshaller.
|
class |
StdMarshallerFactory.StdUnMarshaller
StdUnMarshaller is an (abstract) implementation of UnMarshaller.
|
class |
StdMarshallerFactory.StdUnMarshallerD
StdUnMarshaller is an (abstract) implementation of UnMarshaller.
|
Modifier and Type | Field and Description |
---|---|
protected org.objectweb.jonathan.resources.api.ChunkFactory |
chunk_factory
The chunk factory parameter used to form messages.
|
protected org.objectweb.jonathan.apis.kernel.ContextFactory |
context_factory
The context factory.
|
protected org.objectweb.jonathan.binding.api.NamingContext |
domain
The domain parameter used to encode references.
|
static org.objectweb.jonathan.resources.api.Chunk |
empty_chunk
An empty chunk.
|
Constructor and Description |
---|
StdMarshallerFactory(org.objectweb.jonathan.resources.api.ChunkFactory chunk_factory,
org.objectweb.jonathan.binding.api.NamingContext domain,
org.objectweb.jonathan.apis.kernel.ContextFactory context_factory) |
Modifier and Type | Method and Description |
---|---|
org.objectweb.jonathan.presentation.api.Marshaller |
newMarshaller()
Returns a new marshaller.
|
org.objectweb.jonathan.presentation.api.UnMarshaller |
newUnMarshaller(org.objectweb.jonathan.resources.api.Chunk chunk,
int read)
Returns a new unmarshaller using the provided chunk(s) as a data source.
|
org.objectweb.jonathan.presentation.api.UnMarshaller |
newUnMarshaller(org.objectweb.jonathan.resources.api.ChunkProvider message)
Returns a new unmarshaller using the provided chunk provider as a data
source.
|
protected org.objectweb.jonathan.resources.api.ChunkFactory chunk_factory
protected org.objectweb.jonathan.binding.api.NamingContext domain
protected org.objectweb.jonathan.apis.kernel.ContextFactory context_factory
public static final org.objectweb.jonathan.resources.api.Chunk empty_chunk
public StdMarshallerFactory(org.objectweb.jonathan.resources.api.ChunkFactory chunk_factory, org.objectweb.jonathan.binding.api.NamingContext domain, org.objectweb.jonathan.apis.kernel.ContextFactory context_factory)
public org.objectweb.jonathan.presentation.api.Marshaller newMarshaller()
newMarshaller
in interface org.objectweb.jonathan.presentation.api.MarshallerFactory
public org.objectweb.jonathan.presentation.api.UnMarshaller newUnMarshaller(org.objectweb.jonathan.resources.api.ChunkProvider message)
newUnMarshaller
in interface org.objectweb.jonathan.presentation.api.MarshallerFactory
provider
- a chunk provider.public org.objectweb.jonathan.presentation.api.UnMarshaller newUnMarshaller(org.objectweb.jonathan.resources.api.Chunk chunk, int read)
newUnMarshaller
in interface org.objectweb.jonathan.presentation.api.MarshallerFactory
chunk
- a (chain of) chunk(s);read
- the number of bytes already read.