|
|||||||||||
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
PortableMarshallerFactory is a factory for "portable" CORBA streams.
Nested Class Summary | |
class |
PortableMarshallerFactory.PortableMarshaller
PortableMarshaller is an (abstract) implementation of Marshaller. |
class |
PortableMarshallerFactory.PortableMarshallerL
PortableMarshallerL is a little endian implementation of Marshaller, extending PortableMarshaller. |
class |
PortableMarshallerFactory.PortableUnMarshaller
PortableUnMarshaller is an implementation of UnMarshaller. |
class |
PortableMarshallerFactory.PortableUnMarshallerD
PortableUnMarshallerD is an implementation of UnMarshaller. |
Field Summary | |
protected ChunkFactory |
chunk_factory
The chunk factory used by this marshaller factory. |
static int |
CHUNKS
|
static int |
CODEBASE
|
protected org.objectweb.jonathan.apis.kernel.ContextFactory |
context_factory
A context factory to associate contexts with marshallers. |
DavidMarshaller |
corba_marshaller
a DavidMarshaller instance, for delegation of the marshalling of the complex CORBA types (Object, TypeCode, Any). |
DavidUnMarshaller |
corba_unmarshaller
a DavidUnMarshaller instance, for delegation of the unmarshalling of the complex CORBA types (Object, TypeCode, Any). |
static int |
INDIRECTION_TAG
|
static int |
MULTIPLE_TYPES
|
static int |
NULL_TAG
|
static int |
SINGLE_TYPE
|
static int |
VALUE_TAG
|
Constructor Summary | |
PortableMarshallerFactory(ChunkFactory chunk_factory)
Creates a new marshaller factory. |
|
PortableMarshallerFactory(ChunkFactory chunk_factory,
org.objectweb.jonathan.apis.kernel.ContextFactory context_factory)
Creates a new marshaller factory. |
|
PortableMarshallerFactory(ChunkFactory chunk_factory,
org.objectweb.jonathan.apis.kernel.ContextFactory context_factory,
DavidMarshallerFactory mf)
Creates a new marshaller factory. |
|
PortableMarshallerFactory(ChunkFactory chunk_factory,
org.objectweb.jonathan.apis.kernel.ContextFactory context_factory,
DavidMarshallerFactory mf,
org.omg.CORBA.ORB orb)
Creates a new marshaller factory. |
|
PortableMarshallerFactory(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 |
Field Detail |
protected ChunkFactory chunk_factory
protected org.objectweb.jonathan.apis.kernel.ContextFactory context_factory
public DavidMarshaller corba_marshaller
It may be null if these types are never used.
public DavidUnMarshaller corba_unmarshaller
It may be null if these types are never used.
public static final int NULL_TAG
public static final int VALUE_TAG
public static final int CODEBASE
public static final int SINGLE_TYPE
public static final int MULTIPLE_TYPES
public static final int CHUNKS
public static final int INDIRECTION_TAG
Constructor Detail |
public PortableMarshallerFactory(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 factory;mf
- a David marshaller factory, only used to initialize
corba_marshaller
and
corba_unmarshaller
;orb
- an ORB instance.public PortableMarshallerFactory(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 PortableMarshallerFactory(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 PortableMarshallerFactory(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 PortableMarshallerFactory(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()
newMarshaller
in interface MarshallerFactory
public DavidOutputStream newOutputStream()
newOutputStream
in interface DavidStreamFactory
public UnMarshaller newUnMarshaller(Chunk chunk, int read)
The read
parameters is used to initialise the number of bytes
read from the message.
newUnMarshaller
in interface MarshallerFactory
chunk
- a (chain of) chunk(s)read
- the number of bytes already read from the message.
public DavidInputStream newInputStream(Chunk chunk, int read)
newInputStream
in interface DavidStreamFactory
chunk
- a chunk;read
- the number of bytes already read from the message.
public UnMarshaller newUnMarshaller(ChunkProvider message)
newUnMarshaller
in interface MarshallerFactory
message
- a chunk provider.
public DavidInputStream newInputStream(ChunkProvider message)
The
read parameters indicates the number of bytes read since
the beginning of the message.
newInputStream
in interface DavidStreamFactory
message
- a chunk provider.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |