private void skipCustomUsingFVD(ValueMember[] fields, com.sun.org.omg.SendingContext.CodeBase sender) throws InvalidClassException, StreamCorruptedException, ClassNotFoundException, IOException { readFormatVersion(); boolean calledDefaultWriteObject = readBoolean(); if (calledDefaultWriteObject) throwAwayData(fields, sender); if (getStreamFormatVersion() == 2) { ((ValueInputStream)getOrbStream()).start_value(); ((ValueInputStream)getOrbStream()).end_value(); } }
public boolean hasField(ValueMember field) { try { for (int i = 0; i < fields.length; i++) { if (fields[i].getName().equals(field.name)) { if (fields[i].getSignature().equals( ValueUtility.getSignature(field))) return true; } } } catch (Exception exc) { // Ignore this; all we want to do is return false // Note that ValueUtility.getSignature can throw checked exceptions. } return false; }
public static String getSignature(ValueMember member) throws ClassNotFoundException { // REVISIT. Can the type be something that is // non-primitive yet not a value_box, value, or objref? // If so, should use ObjectStreamClass or throw // exception. if (member.type.kind().value() == TCKind._tk_value_box || member.type.kind().value() == TCKind._tk_value || member.type.kind().value() == TCKind._tk_objref) { Class c = RepositoryId.cache.getId(member.id).getClassFromType(); return ObjectStreamClass.getSignature(c); } else { return primitiveConstants[member.type.kind().value()]; } }
public void readParams(es.tid.TIDorbj.core.cdr.CDRInputStream input) { super.readParams(input); m_value_modifier = input.read_short(); m_concrete_base = input.read_TypeCode(); int length = input.read_ulong(); m_members = new ValueMember[length]; for (int i = 0; i < length; i++) { m_members[i].name = input.read_string(); m_members[i].type = input.read_TypeCode(); m_members[i].access = input.read_short(); } }
public TypeCodeImpl(ORB orb, int creationKind, String id, String name, short type_modifier, TypeCode concrete_base, ValueMember[] members) // for value types { this(orb) ; if (creationKind == TCKind._tk_value) { _kind = creationKind; setId(id); _name = name; _type_modifier = type_modifier; if (concrete_base != null) { _concrete_base = convertToNative(_orb, concrete_base); } _memberCount = members.length; _memberNames = new String[_memberCount]; _memberTypes = new TypeCodeImpl[_memberCount]; _memberAccess = new short[_memberCount]; for (int i = 0 ; i < _memberCount ; i++) { _memberNames[i] = members[i].name; _memberTypes[i] = convertToNative(_orb, members[i].type); _memberTypes[i].setParent(this); _memberAccess[i] = members[i].access; } } // else initializes to null }
public boolean hasField(ValueMember field){ for (int i = 0; i < fields.length; i++){ try{ if (fields[i].getName().equals(field.name)) { if (fields[i].getSignature().equals(ValueUtility.getSignature(field))) return true; } } catch(Throwable t){} } return false; }
public synchronized org.omg.CORBA.TypeCode create_value_tc(String id, String name, short type_modifier, TypeCode concrete_base, ValueMember[] members) { checkShutdownState(); return new TypeCodeImpl(this, TCKind._tk_value, id, name, type_modifier, concrete_base, members); }
public org.omg.CORBA.TypeCode create_value_tc(String id, String name, short type_modifier, TypeCode concrete_base, ValueMember[] members) { return new TypeCodeImpl(this, TCKind._tk_value, id, name, type_modifier, concrete_base, members); }