org.jacorb.orb
Class EncapsInfo

java.lang.Object
  extended byorg.jacorb.orb.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.13 2004/08/14 15:48:22 andre.spiegel Exp $
Author:
Gerald Brose

Field Summary
 java.util.Map codebaseMap
           
 int index
           
 boolean littleEndian
           
 java.util.Map repIdMap
           
 int size
           
 int start
           
 java.util.Map valueMap
           
 
Constructor Summary
EncapsInfo(boolean le, int index, int start, int size)
          constructor used by CDRInputStream
EncapsInfo(int index, int start, java.util.Map valueMap, java.util.Map repIdMap, java.util.Map codebaseMap)
          constructor used by CDROutputStream: record the index a new encapsulation starts with and the start position in the buffer.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

littleEndian

public boolean littleEndian

index

public int index

start

public int start

size

public int size

valueMap

public java.util.Map valueMap

repIdMap

public java.util.Map repIdMap

codebaseMap

public java.util.Map codebaseMap
Constructor Detail

EncapsInfo

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


EncapsInfo

public EncapsInfo(int index,
                  int start,
                  java.util.Map valueMap,
                  java.util.Map repIdMap,
                  java.util.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.