1. /*
  2. * Copyright 2003 Sun Microsystems, Inc. All rights reserved.
  3. * SUN PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
  4. */
  5. /*
  6. * @(#)IIOPOutputStream_1_3_1.java 1.3 03/01/23
  7. */
  8. package com.sun.corba.se.internal.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 IIOPOutputStream_1_3_1 extends com.sun.corba.se.internal.io.IIOPOutputStream
  16. {
  17. // We can't assume that the superclass's putFields
  18. // member will be non-private. We must allow
  19. // the RI to run on JDK 1.3.1 FCS as well as
  20. // the JDK 1.3.1_01 patch.
  21. private ObjectOutputStream.PutField putFields_1_3_1;
  22. public IIOPOutputStream_1_3_1()
  23. throws java.io.IOException {
  24. super();
  25. }
  26. /**
  27. * Before JDK 1.3.1_01, the PutField/GetField implementation
  28. * actually sent a Hashtable.
  29. */
  30. public ObjectOutputStream.PutField putFields()
  31. throws IOException {
  32. putFields_1_3_1 = new LegacyHookPutFields();
  33. return putFields_1_3_1;
  34. }
  35. public void writeFields()
  36. throws IOException {
  37. putFields_1_3_1.write(this);
  38. }
  39. }