org.jacorb.orb

Class EncapsInfo


public class EncapsInfo
extends java.lang.Object

information the has to be saved for each encapsulation and restored later

Version:
$Id: EncapsInfo.java,v 1.11 2004/05/06 12:40:00 nicolas Exp $

Author:
Gerald Brose

Field Summary

Map
codebaseMap
int
index
boolean
littleEndian
Map
repIdMap
int
size
int
start
Map
valueMap

Constructor Summary

EncapsInfo(boolean le, int index, int start, int size)
constructor used by CDRInputStream
EncapsInfo(int index, int start, Map valueMap, Map repIdMap, Map codebaseMap)
constructor used by CDROutputStream: record the index a new encapsulation starts with and the start position in the buffer.

Field Details

codebaseMap

public Map codebaseMap


index

public int index


littleEndian

public boolean littleEndian


repIdMap

public Map repIdMap


size

public int size


start

public int start


valueMap

public Map valueMap

Constructor Details

EncapsInfo

public EncapsInfo(boolean le,
                  int index,
                  int start,
                  int size)
constructor used by CDRInputStream


EncapsInfo

public EncapsInfo(int index,
                  int start,
                  Map valueMap,
                  Map repIdMap,
                  Map codebaseMap)
constructor used by CDROutputStream: record the index a new encapsulation starts with and the start position in the buffer. CORBA specifies that "indirections may not cross encapsulation boundaries", so the new encapsulation must set up its own indirection maps for values, repository ids and codebase strings. The maps currently in use are also recorded, to be restored at the end of the encapsulation.