1. /*
  2. * @(#)GenericTaggedProfile.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/GenericTaggedProfile.java
  8. package com.sun.corba.se.internal.ior;
  9. import org.omg.CORBA.ORB ;
  10. import com.sun.corba.se.internal.corba.EncapsOutputStream ;
  11. import org.omg.CORBA_2_3.portable.InputStream ;
  12. import com.sun.corba.se.internal.core.GIOPVersion ;
  13. /**
  14. * @author
  15. */
  16. public class GenericTaggedProfile extends GenericIdEncapsulation implements TaggedProfile
  17. {
  18. public GenericTaggedProfile( int id, InputStream is )
  19. {
  20. super( id, is ) ;
  21. }
  22. public GenericTaggedProfile( int id, byte[] data )
  23. {
  24. super( id, data ) ;
  25. }
  26. /**
  27. * @return org.omg.IOP.TaggedProfile
  28. * @exception
  29. * @author
  30. * @roseuid 3980B6A40343
  31. */
  32. public org.omg.IOP.TaggedProfile getIOPProfile( ORB orb )
  33. {
  34. EncapsOutputStream os = new EncapsOutputStream( orb ) ;
  35. write( os ) ;
  36. InputStream is = (InputStream)(os.create_input_stream()) ;
  37. return org.omg.IOP.TaggedProfileHelper.read( is ) ;
  38. }
  39. /**
  40. * @return org.omg.IOP.TaggedComponent[]
  41. * @exception
  42. * @author
  43. * @roseuid 3980B6A4037F
  44. */
  45. public org.omg.IOP.TaggedComponent[] getIOPComponents(
  46. ORB orb, int id )
  47. {
  48. return null ;
  49. }
  50. }