public static GIOPVersion parseVersion(String s) { int dotIdx = s.indexOf('.'); if (dotIdx < 1 || dotIdx == s.length() - 1) throw new NumberFormatException("GIOP major, minor, and decimal point required: " + s); int major = Integer.parseInt(s.substring(0, dotIdx)); int minor = Integer.parseInt(s.substring(dotIdx + 1, s.length())); return GIOPVersion.getInstance((byte) major, (byte) minor); }
public static GIOPVersion parseVersion(String s) { int dotIdx = s.indexOf('.'); if (dotIdx < 1 || dotIdx == s.length() - 1) throw new NumberFormatException("GIOP major, minor, and decimal point required: " + s); int major = Integer.parseInt(s.substring(0, dotIdx)); int minor = Integer.parseInt(s.substring(dotIdx + 1, s.length())); return GIOPVersion.getInstance((byte) major, (byte) minor); }
public void write(org.omg.CORBA.portable.OutputStream ostream) { if (this.encodingVersion == Message.CDR_ENC_VERSION) { super.write(ostream); return; } GIOPVersion gv = this.GIOP_version; // save this.GIOP_version = GIOPVersion.getInstance((byte) 13, this.encodingVersion); super.write(ostream); this.GIOP_version = gv; // restore } }
public void write(org.omg.CORBA.portable.OutputStream ostream) { if (this.encodingVersion == Message.CDR_ENC_VERSION) { super.write(ostream); return; } GIOPVersion gv = this.GIOP_version; // save this.GIOP_version = GIOPVersion.getInstance((byte) 13, this.encodingVersion); super.write(ostream); this.GIOP_version = gv; // restore } }
public IIOPProfileTemplateImpl(InputStream istr) { byte major = istr.read_octet(); byte minor = istr.read_octet(); giopVersion = GIOPVersion.getInstance(major, minor); primary = new IIOPAddressImpl(istr); orb = (ORB) (istr.orb()); // Handle any tagged components (if applicable) if (minor > 0) EncapsulationUtility.readIdentifiableSequence(this, orb.getTaggedComponentFactoryFinder(), istr); makeImmutable(); }
public IIOPProfileTemplateImpl(InputStream istr) { byte major = istr.read_octet(); byte minor = istr.read_octet(); giopVersion = GIOPVersion.getInstance(major, minor); primary = new IIOPAddressImpl(istr); orb = (ORB) (istr.orb()); // Handle any tagged components (if applicable) if (minor > 0) EncapsulationUtility.readIdentifiableSequence(this, orb.getTaggedComponentFactoryFinder(), istr); makeImmutable(); }