1. /*
  2. * @(#)TaggedComponentBase.java 1.7 03/01/23
  3. *
  4. * Copyright 2003 Sun Microsystems, Inc. All rights reserved.
  5. * SUN PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
  6. */
  7. //Source file: G:/space/ws/ServerActivation/src/share/classes/com.sun.corba.se.internal.ior/TaggedComponentBase.java
  8. package com.sun.corba.se.internal.ior;
  9. import com.sun.corba.se.internal.corba.EncapsOutputStream ;
  10. import org.omg.CORBA_2_3.portable.InputStream ;
  11. import org.omg.CORBA.ORB ;
  12. /**
  13. * @author
  14. */
  15. public abstract class TaggedComponentBase extends IdEncapsulationBase
  16. implements TaggedComponent
  17. {
  18. public org.omg.IOP.TaggedComponent getIOPComponent(
  19. ORB orb )
  20. {
  21. EncapsOutputStream os = new EncapsOutputStream( orb ) ;
  22. write( os ) ;
  23. InputStream is = (InputStream)(os.create_input_stream() ) ;
  24. return org.omg.IOP.TaggedComponentHelper.read( is ) ;
  25. }
  26. }