Package org.jacorb.orb

Examples of org.jacorb.orb.CDRInputStream.openEncapsulatedArray()


    {
        final CDRInputStream in = new CDRInputStream(orb, data);

        try
        {
            in.openEncapsulatedArray();
            Any result = in.read_any();

            // not necessary to end encapsulation, since stream is never used again

            return result;
View Full Code Here


    {
        final CDRInputStream in = new CDRInputStream(orb, data);

        try
        {
            in.openEncapsulatedArray();
            Any result = orb.create_any();
            result.read_value(in, tc);

            // not necessary to end encapsulation, since stream is never used again
View Full Code Here

   public MIOPProfile (byte[] data)
   {
      this.data = data;

      CDRInputStream in = new CDRInputStream (data);
      in.openEncapsulatedArray ();
      uipmc = UIPMC_ProfileBodyHelper.read (in);
      in.close ();

      version = uipmc.miop_version;
   }
View Full Code Here

                  {
                     logger.debug ("MIOPProfile inspecting tagGroup.");
                  }

                  CDRInputStream in2 = new CDRInputStream (orb, component.component_data);
                  in2.openEncapsulatedArray();
                  tagGroup = TagGroupTaggedComponentHelper.read (in2);
                  in2.close();
                  break;
               }
               case TAG_INTERNET_IOP.value:
View Full Code Here

    {
        final CDRInputStream in = new CDRInputStream( taggedComponent.component_data );

        try
        {
            in.openEncapsulatedArray();
            byte b= in.read_octet();

            out.println( "\t\tTAG_RMI_CUSTOM_MAX_STREAM_FORMAT: " + Byte.toString(b));
        }
        finally
View Full Code Here

    {
        final CDRInputStream is = new CDRInputStream (taggedComponent.component_data );

        try
        {
            is.openEncapsulatedArray ();
            int type = is.read_long ();

            out.print ( "\t\tType: " + type);
            if (type == ORBConstants.JACORB_ORB_ID)
            {
View Full Code Here

    {
        final CDRInputStream is = new CDRInputStream(taggedComponent.component_data);

        try
        {
            is.openEncapsulatedArray();
            String hostname = is.read_string();
            short port = is.read_ushort();

            IIOPAddress result = new IIOPAddress (hostname, port);
            try
View Full Code Here

    private static void printTagGroupTaggedComponent(TaggedComponent taggedComponent, PrintWriter out)
    {
        final CDRInputStream is = new CDRInputStream(org.omg.CORBA.ORBSingleton.init(), taggedComponent.component_data);

        is.openEncapsulatedArray();
        TagGroupTaggedComponent tagGroup = TagGroupTaggedComponentHelper.read (is);
        is.close ();

        out.println ("\t\tVersion: " + tagGroup.group_version.major + ":" + tagGroup.group_version.minor);
        out.println ("\t\tDomain: " + tagGroup.group_domain_id);
View Full Code Here

        try
        {
            int val;
            int count = 0;

            is.openEncapsulatedArray ();
            int len = is.read_long ();

            while (len-- != 0)
            {
                val = is.read_long ();
View Full Code Here

        for (int i = 0; i < profiles.length; i++)
        {
            if (profiles[i].tag == TAG_INTERNET_IOP.value)
            {
                is = new CDRInputStream (orb, profiles[i].profile_data);
                is.openEncapsulatedArray ();
                body10 = ProfileBody_1_0Helper.read (is);
                is.close ();

                os = (CDROutputStream) orb.create_output_stream();
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.