1. /*
  2. * @(#)OutputObject.java 1.12 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.pept.encoding;
  8. import java.io.IOException;
  9. import com.sun.corba.se.pept.protocol.MessageMediator;
  10. /**
  11. * <p> An <code>OutputObject</code> is the interface used by the
  12. * presentation block to give programming language typed data to
  13. * the encoding block to be encoded and sent in a message. </p>
  14. *
  15. * <p> The implementation of an <code>OutputObject</code> contains the
  16. * encoded data. When the presentation block gives programming language
  17. * typed data to
  18. * <code>OutputObject</code>, the
  19. * implementation of <code>OutputObject</code> is responsible for converting
  20. * that data to the encoded representation of the data for a particular
  21. * encoding.</p>
  22. *
  23. * <p>A particular <em>encoding</em> would subclass
  24. * <code>OutputObject</code>. The subclass would provide methods to set
  25. * the data types appropriate to the presentation block (e.g., simple
  26. * types such as int or boolean, all the way to any type derived from
  27. * <code>java.io.Serializable</code>.).</p>
  28. *
  29. * <p>Note: the protocol block may also use the <code>OutputObject</code> to
  30. * set header metadata.</p>
  31. *
  32. * @author Harold Carr
  33. */
  34. public interface OutputObject
  35. {
  36. public void setMessageMediator(MessageMediator messageMediator);
  37. public MessageMediator getMessageMediator();
  38. public void close() throws IOException;
  39. }
  40. // End of file.