KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > sun > corba > se > impl > orbutil > IIOPOutputStream_1_3_1


1 /*
2  * Copyright 2004 Sun Microsystems, Inc. All rights reserved.
3  * SUN PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
4  */

5
6 /*
7  * @(#)IIOPOutputStream_1_3_1.java 1.5 03/12/19
8  */

9 package com.sun.corba.se.impl.orbutil;
10
11 import java.io.*;
12 import java.util.Hashtable JavaDoc;
13
14 /**
15  * Implements legacy behavior from Ladybird to maintain
16  * backwards compatibility.
17  */

18 public class IIOPOutputStream_1_3_1 extends com.sun.corba.se.impl.io.IIOPOutputStream
19 {
20     // We can't assume that the superclass's putFields
21
// member will be non-private. We must allow
22
// the RI to run on JDK 1.3.1 FCS as well as
23
// the JDK 1.3.1_01 patch.
24
private ObjectOutputStream.PutField putFields_1_3_1;
25
26     public IIOPOutputStream_1_3_1()
27         throws java.io.IOException JavaDoc {
28         super();
29     }
30
31     /**
32      * Before JDK 1.3.1_01, the PutField/GetField implementation
33      * actually sent a Hashtable.
34      */

35     public ObjectOutputStream.PutField putFields()
36     throws IOException {
37
38     putFields_1_3_1 = new LegacyHookPutFields();
39     return putFields_1_3_1;
40     }
41
42     public void writeFields()
43     throws IOException {
44
45     putFields_1_3_1.write(this);
46     }
47 }
48
49
Popular Tags