38 |
|
|
39 |
package org.omg.CORBA; |
package org.omg.CORBA; |
40 |
|
|
41 |
|
import gnu.CORBA.CDR.uncObjectInputStream; |
42 |
|
import gnu.CORBA.CDR.uncObjectOutputStream; |
43 |
import gnu.CORBA.recordTypeCode; |
import gnu.CORBA.recordTypeCode; |
44 |
|
|
45 |
import org.omg.CORBA.portable.InputStream; |
import org.omg.CORBA.portable.InputStream; |
111 |
// in its finalizer. |
// in its finalizer. |
112 |
try |
try |
113 |
{ |
{ |
114 |
ObjectInputStream oin = |
ObjectInputStream oin = new uncObjectInputStream(output); |
|
new ObjectInputStream(output) |
|
|
{ |
|
|
public void close() |
|
|
{ |
|
|
} |
|
|
}; |
|
115 |
return (Serializable) oin.readObject(); |
return (Serializable) oin.readObject(); |
116 |
} |
} |
117 |
catch (Exception ex) |
catch (Exception ex) |
147 |
// in its finalizer. |
// in its finalizer. |
148 |
try |
try |
149 |
{ |
{ |
150 |
ObjectOutputStream oout = |
ObjectOutputStream oout = new uncObjectOutputStream(input); |
|
new ObjectOutputStream(input) |
|
|
{ |
|
|
public void close() |
|
|
throws IOException |
|
|
{ |
|
|
flush(); |
|
|
} |
|
|
}; |
|
151 |
oout.writeObject(value); |
oout.writeObject(value); |
152 |
oout.flush(); |
oout.flush(); |
153 |
} |
} |