1. /*
  2. * @(#)IIOPInputStream_1_3.java 1.4 03/01/23
  3. *
  4. * Copyright 2003 Sun Microsystems, Inc. All rights reserved.
  5. * SUN PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
  6. */
  7. package com.sun.corba.se.internal.orbutil;
  8. import java.io.*;
  9. import java.util.Hashtable;
  10. /**
  11. * Implements legacy behavior from before Ladybird to maintain
  12. * backwards compatibility.
  13. */
  14. public class IIOPInputStream_1_3 extends com.sun.corba.se.internal.io.IIOPInputStream
  15. {
  16. // The newer version in the io package correctly reads a wstring instead.
  17. // This concerns bug 4379597.
  18. protected String internalReadUTF(org.omg.CORBA.portable.InputStream stream)
  19. {
  20. return stream.read_string();
  21. }
  22. /**
  23. * Before JDK 1.3.1_01, the PutField/GetField implementation
  24. * actually sent a Hashtable.
  25. */
  26. public ObjectInputStream.GetField readFields()
  27. throws IOException, ClassNotFoundException, NotActiveException {
  28. Hashtable fields = (Hashtable)readObject();
  29. return new LegacyHookGetFields(fields);
  30. }
  31. public IIOPInputStream_1_3()
  32. throws java.io.IOException {
  33. super();
  34. }
  35. }