public static org.omg.IOP.CodecPackage.TypeMismatch read (org.omg.CORBA.portable.InputStream istream) { org.omg.IOP.CodecPackage.TypeMismatch value = new org.omg.IOP.CodecPackage.TypeMismatch (); // read and discard the repository ID istream.read_string (); return value; }
SASContextBody decodeSASContextBody(ServiceContext sasSC) { // // Decode encapsulated SAS context body // /* * org.omg.CORBA.portable.InputStream in = * Porting.open_encapsulated_input_stream( sasSC.context_data, 0, * sasSC.context_data.length, getOrb()); * * return SASContextBodyHelper.read(in); */ Any any; try { any = codec.decode_value(sasSC.context_data, SASContextBodyHelper .type()); } catch (FormatMismatch ex) { throw (org.omg.CORBA.INTERNAL)new org.omg.CORBA.INTERNAL(ex.getMessage()).initCause(ex); } catch (TypeMismatch ex) { throw (org.omg.CORBA.INTERNAL)new org.omg.CORBA.INTERNAL(ex.getMessage()).initCause(ex); } return SASContextBodyHelper.extract(any); }
public static TypeMismatch read(org.omg.CORBA.portable.InputStream in) { if(!id().equals(in.read_string())) throw new org.omg.CORBA.MARSHAL(); TypeMismatch _ob_v = new TypeMismatch(); return _ob_v; }
public static org.omg.IOP.CodecPackage.TypeMismatch read (final org.omg.CORBA.portable.InputStream in) { String id = in.read_string(); if (!id.equals(id())) throw new org.omg.CORBA.MARSHAL("wrong id: " + id); final org.omg.IOP.CodecPackage.TypeMismatch result = new org.omg.IOP.CodecPackage.TypeMismatch(id); return result; } public static void write (final org.omg.CORBA.portable.OutputStream out, final org.omg.IOP.CodecPackage.TypeMismatch s)
public static org.omg.IOP.CodecPackage.TypeMismatch read (final org.omg.CORBA.portable.InputStream in) { String id = in.read_string(); if (!id.equals(id())) throw new org.omg.CORBA.MARSHAL("wrong id: " + id); final org.omg.IOP.CodecPackage.TypeMismatch result = new org.omg.IOP.CodecPackage.TypeMismatch(id); return result; } public static void write (final org.omg.CORBA.portable.OutputStream out, final org.omg.IOP.CodecPackage.TypeMismatch s)
public org.omg.CORBA.Any decode_value(byte[] data, org.omg.CORBA.TypeCode tc) throws org.omg.IOP.CodecPackage.FormatMismatch, org.omg.IOP.CodecPackage.TypeMismatch { if (tc == null) throw new org.omg.IOP.CodecPackage.TypeMismatch(); try { org.apache.yoko.orb.OCI.Buffer buf = new org.apache.yoko.orb.OCI.Buffer( data, data.length); org.apache.yoko.orb.CORBA.InputStream in = new org.apache.yoko.orb.CORBA.InputStream( buf, 0, false); in._OB_ORBInstance(orbInstance_); in._OB_readEndian(); org.apache.yoko.orb.CORBA.Any any = new org.apache.yoko.orb.CORBA.Any( orbInstance_, tc, null); any.read_value(in, tc); return any; } catch (org.omg.CORBA.MARSHAL ex) { throw (org.omg.IOP.CodecPackage.FormatMismatch)new org.omg.IOP.CodecPackage.FormatMismatch().initCause(ex); } }