1. /*
  2. * @(#)ValueFactory.java 1.6 00/02/02
  3. *
  4. * Copyright 1999, 2000 Sun Microsystems, Inc. All Rights Reserved.
  5. *
  6. * This software is the proprietary information of Sun Microsystems, Inc.
  7. * Use is subject to license terms.
  8. *
  9. */
  10. /*
  11. * Licensed Materials - Property of IBM
  12. * RMI-IIOP v1.0
  13. * Copyright IBM Corp. 1998 1999 All Rights Reserved
  14. *
  15. * US Government Users Restricted Rights - Use, duplication or
  16. * disclosure restricted by GSA ADP Schedule Contract with IBM Corp.
  17. */
  18. package org.omg.CORBA.portable;
  19. import java.io.Serializable;
  20. /**
  21. * The ValueFactory interface is the native mapping for the IDL
  22. * type CORBA::ValueFactory. The read_value() method is called by
  23. * the ORB runtime while in the process of unmarshaling a value type.
  24. * A user shall implement this method as part of implementing a type
  25. * specific value factory. In the implementation, the user shall call
  26. * is.read_value(java.io.Serializable) with a uninitialized valuetype
  27. * to use for unmarshaling. The value returned by the stream is
  28. * the same value passed in, with all the data unmarshaled.
  29. * @see org.omg.CORBA_2_3.ORB
  30. */
  31. public interface ValueFactory {
  32. /**
  33. * Is called by
  34. * the ORB runtime while in the process of unmarshaling a value type.
  35. * A user shall implement this method as part of implementing a type
  36. * specific value factory.
  37. * @param is an InputStream object--from which the value will be read.
  38. * @return a Serializable object--the value read off of "is" Input stream.
  39. */
  40. Serializable read_value(org.omg.CORBA_2_3.portable.InputStream is);
  41. }