1. /*
  2. * Copyright 2004 Sun Microsystems, Inc. All rights reserved.
  3. * SUN PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
  4. */
  5. /*
  6. * @(#)IIOPInputStream_1_3_1.java 1.5 03/12/19
  7. */
  8. package com.sun.corba.se.impl.orbutil;
  9. import java.io.*;
  10. import java.util.Hashtable;
  11. /**
  12. * Implements legacy behavior from Ladybird to maintain
  13. * backwards compatibility.
  14. */
  15. public class IIOPInputStream_1_3_1 extends com.sun.corba.se.impl.io.IIOPInputStream
  16. {
  17. public IIOPInputStream_1_3_1()
  18. throws java.io.IOException {
  19. super();
  20. }
  21. /**
  22. * Before JDK 1.3.1_01, the PutField/GetField implementation
  23. * actually sent a Hashtable.
  24. */
  25. public ObjectInputStream.GetField readFields()
  26. throws IOException, ClassNotFoundException, NotActiveException {
  27. Hashtable fields = (Hashtable)readObject();
  28. return new LegacyHookGetFields(fields);
  29. }
  30. }