0N/A/*
157N/A * Copyright (c) 1999, Oracle and/or its affiliates. All rights reserved.
0N/A * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
0N/A *
0N/A * This code is free software; you can redistribute it and/or modify it
0N/A * under the terms of the GNU General Public License version 2 only, as
157N/A * published by the Free Software Foundation. Oracle designates this
0N/A * particular file as subject to the "Classpath" exception as provided
157N/A * by Oracle in the LICENSE file that accompanied this code.
0N/A *
0N/A * This code is distributed in the hope that it will be useful, but WITHOUT
0N/A * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
0N/A * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
0N/A * version 2 for more details (a copy is included in the LICENSE file that
0N/A * accompanied this code).
0N/A *
0N/A * You should have received a copy of the GNU General Public License version
0N/A * 2 along with this work; if not, write to the Free Software Foundation,
0N/A * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
0N/A *
157N/A * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
157N/A * or visit www.oracle.com if you need additional information or have any
157N/A * questions.
0N/A */
0N/A/*
0N/A * Licensed Materials - Property of IBM
0N/A * RMI-IIOP v1.0
0N/A * Copyright IBM Corp. 1998 1999 All Rights Reserved
0N/A *
0N/A */
0N/A
0N/Apackage org.omg.CORBA.portable;
0N/Aimport java.io.Serializable;
0N/A
0N/A/**
0N/A * The ValueFactory interface is the native mapping for the IDL
0N/A * type CORBA::ValueFactory. The read_value() method is called by
0N/A * the ORB runtime while in the process of unmarshaling a value type.
0N/A * A user shall implement this method as part of implementing a type
0N/A * specific value factory. In the implementation, the user shall call
0N/A * is.read_value(java.io.Serializable) with a uninitialized valuetype
0N/A * to use for unmarshaling. The value returned by the stream is
0N/A * the same value passed in, with all the data unmarshaled.
0N/A * @see org.omg.CORBA_2_3.ORB
0N/A */
0N/A
0N/Apublic interface ValueFactory {
0N/A /**
0N/A * Is called by
0N/A * the ORB runtime while in the process of unmarshaling a value type.
0N/A * A user shall implement this method as part of implementing a type
0N/A * specific value factory.
0N/A * @param is an InputStream object--from which the value will be read.
0N/A * @return a Serializable object--the value read off of "is" Input stream.
0N/A */
0N/A Serializable read_value(org.omg.CORBA_2_3.portable.InputStream is);
0N/A}