?? _stoppablechatserverstub.java
字號:
package com.deitel.messenger.corba.server;
/**
* com/deitel/messenger/corba/server/_StoppableChatServerStub.java
* Generated by the IDL-to-Java compiler (portable), version "3.0"
* from chat.idl
* Tuesday, August 21, 2001 6:24:10 PM EDT
*/
public class _StoppableChatServerStub extends org.omg.CORBA.portable.ObjectImpl implements com.deitel.messenger.corba.server.StoppableChatServer
{
// Constructors
// NOTE: If the default constructor is used, the
// object is useless until _set_delegate (...)
// is called.
public _StoppableChatServerStub ()
{
super ();
}
public _StoppableChatServerStub (org.omg.CORBA.portable.Delegate delegate)
{
super ();
_set_delegate (delegate);
}
public void stopServer ()
{
org.omg.CORBA.portable.InputStream _in = null;
try {
org.omg.CORBA.portable.OutputStream _out = _request ("stopServer", true);
_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) {
stopServer ();
} finally {
_releaseReply (_in);
}
} // stopServer
// Type-specific CORBA::Object operations
private static String[] __ids = {
"IDL:corba/server/StoppableChatServer:1.0"};
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 _StoppableChatServerStub
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -