【Java开源代码栏目提醒】:网学会员为需要Java开源代码的朋友们搜集整理了_MessageServerStub.java相关资料,希望对各位网友有所帮助!
/**
* _MessageServerStub.java
* Generated by the IDL-to-Java compiler (portable), version "3.0"
* from MessageServer.idl
* Wednesday, February 28, 2001 9:50:33 PM PST
*/
public class _MessageServerStub extends org.omg.CORBA.portable.ObjectImpl implements MessageServer
{
// Constructors
// NOTE: If the default constructor is used, the
// object is useless until _set_delegate (...)
// is called.
public _MessageServerStub ()
{
super ();
}
public _MessageServerStub (org.omg.CORBA.portable.Delegate delegate)
{
super ();
_set_delegate (delegate);
}
public void send (String arg0, String arg1)
{
org.omg.CORBA.portable.InputStream _in = null;
try {
org.omg.CORBA.portable.OutputStream _out = _request ("send", true);
org.omg.CORBA.WStringValueHelper.write (_out, arg0);
org.omg.CORBA.WStringValueHelper.write (_out, arg1);
_in = _invoke (_out);
} catch (org.omg.CORBA.portable.ApplicationException _ex) {
_in = _ex.getInputStream ();
String _id = _ex.getId ();
throw new org.omg.CORBA.MARSHAL (_id);
} catch (org.omg.CORBA.portable.RemarshalException _rm) {
send (arg0, arg1);
} finally {
_releaseReply (_in);
}
} // send
// Type-specific CORBA::Object operations
private static String[] __ids = {
"RMI:MessageServer:0000000000000000"};
public String[] _ids ()
{
return (String[])__ids.clone ();
}
private void readObject (java.io.ObjectInputStream s)
{
try
{
String str = s.readUTF ();
org.omg.CORBA.Object obj = org.omg.CORBA.ORB.init ().string_to_object (str);
org.omg.CORBA.portable.Delegate delegate = ((org.omg.CORBA.portable.ObjectImpl) obj)._get_delegate ();
_set_delegate (delegate);
} catch (java.io.IOException e) {}
}
private void writeObject (java.io.ObjectOutputStream s)
{
try
{
String str = org.omg.CORBA.ORB.init ().object_to_string (this);
s.writeUTF (str);
} catch (java.io.IOException e) {}
}
} // class _MessageServerStub