|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.objectweb.david.libs.presentation.portable.PortableMarshallerFactory
org.objectweb.david.libs.presentation.portable.CDRMarshallerFactory
CORBA CDR extension of PortableMarshallerFactory.
Nested Class Summary |
Nested classes inherited from class org.objectweb.david.libs.presentation.portable.PortableMarshallerFactory |
PortableMarshallerFactory.PortableMarshaller, PortableMarshallerFactory.PortableMarshallerL, PortableMarshallerFactory.PortableUnMarshaller, PortableMarshallerFactory.PortableUnMarshallerD |
Field Summary |
Fields inherited from class org.objectweb.david.libs.presentation.portable.PortableMarshallerFactory |
chunk_factory, CHUNKS, CODEBASE, context_factory, corba_marshaller, corba_unmarshaller, INDIRECTION_TAG, MULTIPLE_TYPES, NULL_TAG, SINGLE_TYPE, VALUE_TAG |
Constructor Summary | |
CDRMarshallerFactory(ChunkFactory chunk_factory)
Creates a new marshaller factory. |
|
CDRMarshallerFactory(ChunkFactory chunk_factory,
org.objectweb.jonathan.apis.kernel.ContextFactory context_factory)
Creates a new marshaller factory. |
|
CDRMarshallerFactory(ChunkFactory chunk_factory,
org.objectweb.jonathan.apis.kernel.ContextFactory context_factory,
DavidMarshallerFactory mf)
Creates a new marshaller factory. |
|
CDRMarshallerFactory(ChunkFactory chunk_factory,
org.objectweb.jonathan.apis.kernel.ContextFactory context_factory,
DavidMarshallerFactory mf,
org.omg.CORBA.ORB orb)
Creates a new CDRMarshallerFactory |
|
CDRMarshallerFactory(ChunkFactory chunk_factory,
DavidMarshallerFactory mf)
Creates a new marshaller factory. |
Method Summary | |
DavidInputStream |
newInputStream(Chunk chunk,
int read)
Creates a new input stream, reading data from the specified chunk provider. |
DavidInputStream |
newInputStream(ChunkProvider message)
Creates a new input stream, reading data from the provided chunk. |
Marshaller |
newMarshaller()
Returns a new (little endian) marshaller. |
DavidOutputStream |
newOutputStream()
Returns a (little endian) 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. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public CDRMarshallerFactory(ChunkFactory chunk_factory, org.objectweb.jonathan.apis.kernel.ContextFactory context_factory, DavidMarshallerFactory mf, org.omg.CORBA.ORB orb)
chunk_factory
- the chunk factory to be used by the new marshaller
factory.context_factory
- a context factorymf
- a David marshaller factory, only used to initialize
corba_marshaller
and
corba_unmarshaller
.orb
- an ORB instance.public CDRMarshallerFactory(ChunkFactory chunk_factory, org.objectweb.jonathan.apis.kernel.ContextFactory context_factory, DavidMarshallerFactory mf)
chunk_factory
- the chunk factory to be used by the new marshaller
factory.context_factory
- a context factorymf
- a David marshaller factory, only used to initialize
corba_marshaller
and
corba_unmarshaller
.public CDRMarshallerFactory(ChunkFactory chunk_factory, org.objectweb.jonathan.apis.kernel.ContextFactory context_factory)
If this constructor is used,corba_marshaller
and
corba_unmarshaller
are left null.
chunk_factory
- the chunk factory to be used by the new marshaller
factory.context_factory
- a context factorypublic CDRMarshallerFactory(ChunkFactory chunk_factory, DavidMarshallerFactory mf)
chunk_factory
- the chunk factory to be used by the new marshaller
factory.mf
- a David marshaller factory, only used to initialize
corba_marshaller
and
corba_unmarshaller
.public CDRMarshallerFactory(ChunkFactory chunk_factory)
If this constructor is used,corba_marshaller
and
corba_unmarshaller
are
left null.
chunk_factory
- the chunk factory to be used by the new marshaller
factory.Method Detail |
public Marshaller newMarshaller()
PortableMarshallerFactory
newMarshaller
in interface MarshallerFactory
newMarshaller
in class PortableMarshallerFactory
public DavidOutputStream newOutputStream()
PortableMarshallerFactory
newOutputStream
in interface DavidStreamFactory
newOutputStream
in class PortableMarshallerFactory
public UnMarshaller newUnMarshaller(Chunk chunk, int read)
PortableMarshallerFactory
The read
parameters is used to initialise the number of bytes
read from the message.
newUnMarshaller
in interface MarshallerFactory
newUnMarshaller
in class PortableMarshallerFactory
chunk
- a (chain of) chunk(s)read
- the number of bytes already read from the message.
public DavidInputStream newInputStream(Chunk chunk, int read)
PortableMarshallerFactory
newInputStream
in interface DavidStreamFactory
newInputStream
in class PortableMarshallerFactory
public UnMarshaller newUnMarshaller(ChunkProvider message)
PortableMarshallerFactory
newUnMarshaller
in interface MarshallerFactory
newUnMarshaller
in class PortableMarshallerFactory
public DavidInputStream newInputStream(ChunkProvider message)
PortableMarshallerFactory
The
read parameters indicates the number of bytes read since
the beginning of the message.
newInputStream
in interface DavidStreamFactory
newInputStream
in class PortableMarshallerFactory
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |