org.jacorb.orb

Class EncapsInfo

public class EncapsInfo extends Object

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

Version: $Id: EncapsInfo.java,v 1.15 2006/07/17 15:43:05 alphonse.bendt Exp $

Author: Gerald Brose

Field Summary
MapcodebaseMap
intindex
booleanlittleEndian
MaprepIdMap
intsize
intstart
MapvalueMap
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 Detail

codebaseMap

public Map codebaseMap

index

public final int index

littleEndian

public boolean littleEndian

repIdMap

public Map repIdMap

size

public int size

start

public final int start

valueMap

public Map valueMap

Constructor Detail

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.