InputObject.java revision 608:7e06bf1dcb09
1130803Smarcel/* 2130803Smarcel * Copyright (c) 2001, 2003, Oracle and/or its affiliates. All rights reserved. 3130803Smarcel * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4130803Smarcel * 5130803Smarcel * This code is free software; you can redistribute it and/or modify it 6130803Smarcel * under the terms of the GNU General Public License version 2 only, as 7130803Smarcel * published by the Free Software Foundation. Oracle designates this 8130803Smarcel * particular file as subject to the "Classpath" exception as provided 9130803Smarcel * by Oracle in the LICENSE file that accompanied this code. 10130803Smarcel * 11130803Smarcel * This code is distributed in the hope that it will be useful, but WITHOUT 12130803Smarcel * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 13130803Smarcel * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 14130803Smarcel * version 2 for more details (a copy is included in the LICENSE file that 15130803Smarcel * accompanied this code). 16130803Smarcel * 17130803Smarcel * You should have received a copy of the GNU General Public License version 18130803Smarcel * 2 along with this work; if not, write to the Free Software Foundation, 19130803Smarcel * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 20130803Smarcel * 21130803Smarcel * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 22130803Smarcel * or visit www.oracle.com if you need additional information or have any 23130803Smarcel * questions. 24130803Smarcel */ 25130803Smarcel 26130803Smarcelpackage com.sun.corba.se.pept.encoding; 27130803Smarcel 28130803Smarcelimport java.io.IOException; 29130803Smarcel 30130803Smarcelimport com.sun.corba.se.pept.protocol.MessageMediator; 31130803Smarcel 32130803Smarcel/** 33130803Smarcel * <p> An <code>InputObject</code> is the interface used by the 34130803Smarcel * presentation block to get programming language typed data from data 35130803Smarcel * encoded in a message. </p> 36130803Smarcel * 37130803Smarcel * <p> The implementation of an <code>InputObject</code> contains the 38130803Smarcel * encoded data. When the presentation block asks for data the 39130803Smarcel * implementation of <code>InputObject</code> is responsible for converting 40130803Smarcel * the encoded representation of the data to the types expected by the 41130803Smarcel * programming language.</p> 42130803Smarcel * 43130803Smarcel * <p>A particular <em>encoding</em> would subclass 44130803Smarcel * <code>InputObject</code>. The subclass would provide methods to get 45130803Smarcel * the data types appropriate to the presentation block (e.g., simple 46130803Smarcel * types such as int or boolean, all the way to any type derived from 47130803Smarcel * <code>java.io.Serializable</code>.).</p> 48130803Smarcel * 49130803Smarcel * <p>Note: the protocol block may also use the <code>InputObject</code> to 50130803Smarcel * obtain header metadata.</p> 51130803Smarcel * 52130803Smarcel * @author Harold Carr 53130803Smarcel*/ 54130803Smarcelpublic interface InputObject 55130803Smarcel{ 56130803Smarcel public void setMessageMediator(MessageMediator messageMediator); 57130803Smarcel 58130803Smarcel public MessageMediator getMessageMediator(); 59130803Smarcel 60130803Smarcel public void close() throws IOException; 61130803Smarcel} 62130803Smarcel 63130803Smarcel// End of file. 64130803Smarcel