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