sources:
ComparisonType.java (1.1k)
ComparisonTypeHelper.java (1.4k)
ComparisonTypeHolder.java (845 bytes)
OverlapType.java (1.3k)
OverlapTypeHelper.java (1.4k)
OverlapTypeHolder.java (818 bytes)
TimeComparison.java (1.4k)
TimeComparisonHelper.java (1.5k)
TimeComparisonHolder.java (845 bytes)
TimeService.java (337 bytes)
TimeServiceHelper.java (1.9k)
TimeServiceHolder.java (818 bytes)
TimeServiceOperations.java (531 bytes)
TimeUnavailable.java (509 bytes)
TimeUnavailableHelper.java (2.0k)
TimeUnavailableHolder.java (854 bytes)
UTO.java (305 bytes)
UTOHelper.java (1.8k)
UTOHolder.java (746 bytes)
UTOOperations.java (458 bytes)
_TimeServiceStub.java (5.1k)
_UTOStub.java (5.3k)


website:
more info here
studies/corba/Corba-Code1/client/CosTime/_UTOStub.java
download file

  1 package CosTime;
  2
  3
  4 /** * CosTime/_UTOStub.java . * Generated by the IDL-to-Java compiler (portable), version "3.1" * from time.idl * Freitag, 18. April 2003 11.06 Uhr CEST */
  5
  6 public class _UTOStub extends org.omg.CORBA.portable.ObjectImpl implements CosTime.UTO
  7 {
  8
  9   public long time ()
 10   {
 11             org.omg.CORBA.portable.InputStream ===>$<===in = null;
 12             try {
 13                 org.omg.CORBA.portable.OutputStream ===>$<===out = _request ("_get_time", true);
 14                 ===>$<===in = _invoke (===>$<===out);
 15                 long ===>$<===result = TimeBase.TimeTHelper.read (===>$<===in);
 16                 return ===>$<===result;
 17             } catch (org.omg.CORBA.portable.ApplicationException ===>$<===ex) {
 18                 ===>$<===in = ===>$<===ex.getInputStream ();
 19                 String _id = ===>$<===ex.getId ();
 20                 throw new org.omg.CORBA.MARSHAL (_id);
 21             } catch (org.omg.CORBA.portable.RemarshalException ===>$<===rm) {
 22                 return time (        );
 23             } finally {
 24                 _releaseReply (===>$<===in);
 25             }
 26   } // time
 27
 28   public long inaccuracy ()
 29   {
 30             org.omg.CORBA.portable.InputStream ===>$<===in = null;
 31             try {
 32                 org.omg.CORBA.portable.OutputStream ===>$<===out = _request ("_get_inaccuracy", true);
 33                 ===>$<===in = _invoke (===>$<===out);
 34                 long ===>$<===result = TimeBase.InaccuracyTHelper.read (===>$<===in);
 35                 return ===>$<===result;
 36             } catch (org.omg.CORBA.portable.ApplicationException ===>$<===ex) {
 37                 ===>$<===in = ===>$<===ex.getInputStream ();
 38                 String _id = ===>$<===ex.getId ();
 39                 throw new org.omg.CORBA.MARSHAL (_id);
 40             } catch (org.omg.CORBA.portable.RemarshalException ===>$<===rm) {
 41                 return inaccuracy (        );
 42             } finally {
 43                 _releaseReply (===>$<===in);
 44             }
 45   } // inaccuracy
 46
 47   public TimeBase.UtcT utc_time ()
 48   {
 49             org.omg.CORBA.portable.InputStream ===>$<===in = null;
 50             try {
 51                 org.omg.CORBA.portable.OutputStream ===>$<===out = _request ("_get_utc_time", true);
 52                 ===>$<===in = _invoke (===>$<===out);
 53                 TimeBase.UtcT ===>$<===result = TimeBase.UtcTHelper.read (===>$<===in);
 54                 return ===>$<===result;
 55             } catch (org.omg.CORBA.portable.ApplicationException ===>$<===ex) {
 56                 ===>$<===in = ===>$<===ex.getInputStream ();
 57                 String _id = ===>$<===ex.getId ();
 58                 throw new org.omg.CORBA.MARSHAL (_id);
 59             } catch (org.omg.CORBA.portable.RemarshalException ===>$<===rm) {
 60                 return utc_time (        );
 61             } finally {
 62                 _releaseReply (===>$<===in);
 63             }
 64   } // utc_time
 65
 66   public CosTime.UTO absolute_time ()
 67   {
 68             org.omg.CORBA.portable.InputStream ===>$<===in = null;
 69             try {
 70                 org.omg.CORBA.portable.OutputStream ===>$<===out = _request ("absolute_time", true);
 71                 ===>$<===in = _invoke (===>$<===out);
 72                 CosTime.UTO ===>$<===result = CosTime.UTOHelper.read (===>$<===in);
 73                 return ===>$<===result;
 74             } catch (org.omg.CORBA.portable.ApplicationException ===>$<===ex) {
 75                 ===>$<===in = ===>$<===ex.getInputStream ();
 76                 String _id = ===>$<===ex.getId ();
 77                 throw new org.omg.CORBA.MARSHAL (_id);
 78             } catch (org.omg.CORBA.portable.RemarshalException ===>$<===rm) {
 79                 return absolute_time (        );
 80             } finally {
 81                 _releaseReply (===>$<===in);
 82             }
 83   } // absolute_time
 84
 85   public CosTime.TimeComparison compare_time (CosTime.ComparisonType comparison_type, CosTime.UTO uto)
 86   {
 87             org.omg.CORBA.portable.InputStream ===>$<===in = null;
 88             try {
 89                 org.omg.CORBA.portable.OutputStream ===>$<===out = _request ("compare_time", true);
 90                 CosTime.ComparisonTypeHelper.write (===>$<===out, comparison_type);
 91                 CosTime.UTOHelper.write (===>$<===out, uto);
 92                 ===>$<===in = _invoke (===>$<===out);
 93                 CosTime.TimeComparison ===>$<===result = CosTime.TimeComparisonHelper.read (===>$<===in);
 94                 return ===>$<===result;
 95             } catch (org.omg.CORBA.portable.ApplicationException ===>$<===ex) {
 96                 ===>$<===in = ===>$<===ex.getInputStream ();
 97                 String _id = ===>$<===ex.getId ();
 98                 throw new org.omg.CORBA.MARSHAL (_id);
 99             } catch (org.omg.CORBA.portable.RemarshalException ===>$<===rm) {
100                 return compare_time (comparison_type, uto        );
101             } finally {
102                 _releaseReply (===>$<===in);
103             }
104   } // compare_time
105
106   // Type-specific CORBA::Object operations
107   private static String[] __ids = {
108     "IDL:hpi.uni-potsdam.de/CosTime/UTO:1.0"};
109
110   public String[] _ids ()
111   {
112     return (String[])__ids.clone ();
113   }
114
115   private void readObject (java.io.ObjectInputStream s) throws java.io.IOException
116   {
117      String str = s.readUTF ();
118      String[] args = null;
119      java.util.Properties props = null;
120      org.omg.CORBA.Object obj = org.omg.CORBA.ORB.init (args, props).string_to_object (str);
121      org.omg.CORBA.portable.Delegate delegate = ((org.omg.CORBA.portable.ObjectImpl) obj)._get_delegate ();
122      _set_delegate (delegate);
123   }
124
125   private void writeObject (java.io.ObjectOutputStream s) throws java.io.IOException
126   {
127      String[] args = null;
128      java.util.Properties props = null;
129      String str = org.omg.CORBA.ORB.init (args, props).object_to_string (this);
130      s.writeUTF (str);
131   }
132 } // class _UTOStub
133