1. /*
  2. * @(#)GenericTaggedComponent.java 1.9 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. package com.sun.corba.se.impl.ior;
  8. import org.omg.CORBA.ORB ;
  9. import org.omg.CORBA_2_3.portable.InputStream ;
  10. import org.omg.CORBA_2_3.portable.OutputStream ;
  11. import com.sun.corba.se.spi.ior.iiop.GIOPVersion ;
  12. import com.sun.corba.se.spi.ior.TaggedComponent ;
  13. /**
  14. * @author
  15. */
  16. public class GenericTaggedComponent extends GenericIdentifiable
  17. implements TaggedComponent
  18. {
  19. public GenericTaggedComponent( int id, InputStream is )
  20. {
  21. super( id, is ) ;
  22. }
  23. public GenericTaggedComponent( int id, byte[] data )
  24. {
  25. super( id, data ) ;
  26. }
  27. /**
  28. * @return org.omg.IOP.TaggedComponent
  29. * @exception
  30. * @author
  31. */
  32. public org.omg.IOP.TaggedComponent getIOPComponent( ORB orb )
  33. {
  34. return new org.omg.IOP.TaggedComponent( getId(),
  35. getData() ) ;
  36. }
  37. }