KickJava   Java API By Example, From Geeks To Geeks.

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


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

36 public interface InputObject
37 {
38     public void setMessageMediator(MessageMediator messageMediator);
39
40     public MessageMediator getMessageMediator();
41
42     public void close() throws IOException JavaDoc;
43 }
44
45 // End of file.
46

47
Popular Tags