KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > sun > corba > se > pept > encoding > OutputObject


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

38 public interface OutputObject
39 {
40     public void setMessageMediator(MessageMediator messageMediator);
41
42     public MessageMediator getMessageMediator();
43
44     public void close() throws IOException JavaDoc;
45 }
46
47 // End of file.
48
Popular Tags