void encode(NetworkDataRepresentation ndr, List defferedPointers ,int FLAG) { //first write all Max counts and then the rest of the structs for (int i = 0;i < listOfMaxCounts.size();i++) { JIMarshalUnMarshalHelper.serialize(ndr,Integer.class,(Integer)listOfMaxCounts.get(i),null,FLAG); } int i = 0; while (i < listOfMembers.size()) { Object o = listOfMembers.get(i); { if (o instanceof JIArray) { //if this array is conformant then reset it's conformancy , since the length would have been //written before. ((JIArray)o).setConformant(false); } JIMarshalUnMarshalHelper.serialize(ndr,o.getClass(),o,defferedPointers,FLAG); if (o instanceof JIArray) { //noew reset this, so that next time when the same struct is written everything goes proper. ((JIArray)o).setConformant(((JIArray)o).isConformant()); } } i++; } }
void encode(NetworkDataRepresentation ndr, List defferedPointers ,int FLAG) { //first write all Max counts and then the rest of the structs for (int i = 0;i < listOfMaxCounts.size();i++) { JIMarshalUnMarshalHelper.serialize(ndr,Integer.class,(Integer)listOfMaxCounts.get(i),null,FLAG); } int i = 0; while (i < listOfMembers.size()) { Object o = listOfMembers.get(i); { if (o instanceof JIArray) { //if this array is conformant then reset it's conformancy , since the length would have been //written before. ((JIArray)o).setConformant(false); } JIMarshalUnMarshalHelper.serialize(ndr,o.getClass(),o,defferedPointers,FLAG); if (o instanceof JIArray) { //noew reset this, so that next time when the same struct is written everything goes proper. ((JIArray)o).setConformant(((JIArray)o).isConformant()); } } i++; } }
void encode ( final NetworkDataRepresentation ndr, final List defferedPointers, final int FLAG ) { //first write all Max counts and then the rest of the structs for ( int i = 0; i < this.listOfMaxCounts.size (); i++ ) { JIMarshalUnMarshalHelper.serialize ( ndr, Integer.class, this.listOfMaxCounts.get ( i ), null, FLAG ); } int i = 0; while ( i < this.listOfMembers.size () ) { final Object o = this.listOfMembers.get ( i ); { if ( o instanceof JIArray ) { //if this array is conformant then reset it's conformancy , since the length would have been //written before. ( (JIArray)o ).setConformant ( false ); } JIMarshalUnMarshalHelper.serialize ( ndr, o.getClass (), o, defferedPointers, FLAG ); if ( o instanceof JIArray ) { //noew reset this, so that next time when the same struct is written everything goes proper. ( (JIArray)o ).setConformant ( ( (JIArray)o ).isConformant () ); } } i++; } }
( (JIArray)o ).setConformant ( false ); maxCountTemp = ( (JIArray)o ).getConformantMaxCounts (); ( (JIArray)o ).setMaxCountAndUpperBounds ( listOfMaxCounts2.subList ( j, ( (Integer)this.listOfDimensions.get ( j ) ).intValue () ) ); ( (JIArray)o ).setConformant ( ( (JIArray)o ).isConformant () ); ( (JIArray)o ).setMaxCountAndUpperBounds ( maxCountTemp );
((JIArray)o).setConformant(false); maxCountTemp = ((JIArray)o).getConformantMaxCounts(); ((JIArray)o).setMaxCountAndUpperBounds(listOfMaxCounts2.subList(j,((Integer)listOfDimensions.get(j)).intValue())); ((JIArray)o).setConformant(((JIArray)o).isConformant()); ((JIArray)o).setMaxCountAndUpperBounds(maxCountTemp);
((JIArray)o).setConformant(false); maxCountTemp = ((JIArray)o).getConformantMaxCounts(); ((JIArray)o).setMaxCountAndUpperBounds(listOfMaxCounts2.subList(j,((Integer)listOfDimensions.get(j)).intValue())); ((JIArray)o).setConformant(((JIArray)o).isConformant()); ((JIArray)o).setMaxCountAndUpperBounds(maxCountTemp);