KickJava   Java API By Example, From Geeks To Geeks.

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


1 /*
2  * @(#)IIOPInputStream_1_3.java 1.6 03/12/19
3  *
4  * Copyright 2004 Sun Microsystems, Inc. All rights reserved.
5  * SUN PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
6  */

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

16 public class IIOPInputStream_1_3 extends com.sun.corba.se.impl.io.IIOPInputStream
17 {
18     // The newer version in the io package correctly reads a wstring instead.
19
// This concerns bug 4379597.
20
protected String JavaDoc internalReadUTF(org.omg.CORBA.portable.InputStream JavaDoc stream)
21     {
22         return stream.read_string();
23     }
24
25     /**
26      * Before JDK 1.3.1_01, the PutField/GetField implementation
27      * actually sent a Hashtable.
28      */

29     public ObjectInputStream.GetField readFields()
30         throws IOException, ClassNotFoundException JavaDoc, NotActiveException {
31     Hashtable JavaDoc fields = (Hashtable JavaDoc)readObject();
32     return new LegacyHookGetFields(fields);
33     }
34
35     public IIOPInputStream_1_3()
36         throws java.io.IOException JavaDoc {
37         super();
38     }
39 }
40
Popular Tags