Examples of beginEncapsulatedArray()


Examples of org.jacorb.orb.CDROutputStream.beginEncapsulatedArray()

    {
        final CDROutputStream out = new CDROutputStream(orb);

        try
        {
            out.beginEncapsulatedArray();
            out.write_any(data);

            // do not end encapsulation since it will patch the
            // array with a size!
View Full Code Here

Examples of org.jacorb.orb.CDROutputStream.beginEncapsulatedArray()

    public static byte[] toCDR(UtcT time)
    {
        // TODO: make this more efficient with mere bit shifting
        byte[] buffer = new byte[25];
        CDROutputStream out = new CDROutputStream(buffer);
        out.beginEncapsulatedArray();
        UtcTHelper.write(out, time);
        return out.getBufferCopy();
    }

    /**
 
View Full Code Here

Examples of org.jacorb.orb.CDROutputStream.beginEncapsulatedArray()

    public byte [] toCDR ()
    {
        CDROutputStream out = new CDROutputStream();
        try
        {
            out.beginEncapsulatedArray();
            this.write(out);
            return out.getBufferCopy();
        }
        finally
        {
View Full Code Here

Examples of org.jacorb.orb.CDROutputStream.beginEncapsulatedArray()

        // Start a CDR encapsulation for the profile_data
        CDROutputStream profileDataStream = new CDROutputStream();
        try
        {
            profileDataStream.beginEncapsulatedArray();

            // Write the opaque AddressProfile bytes for this profile...
            writeAddressProfile(profileDataStream);

            // ... then the object key
View Full Code Here

Examples of org.jacorb.orb.CDROutputStream.beginEncapsulatedArray()

            //create the tagged component containing the ssl struct
            final CDROutputStream out = new CDROutputStream();
            try
            {
                out.beginEncapsulatedArray();
                SSLHelper.write( out, ssl );

                // TAG_SSL_SEC_TRANS must be disambiguated in case OpenORB-generated
                // OMG classes are in the classpath.
                components.addComponent
View Full Code Here

Examples of org.jacorb.orb.CDROutputStream.beginEncapsulatedArray()

                is.openEncapsulatedArray ();
                body10 = ProfileBody_1_0Helper.read (is);
                is.close ();

                os = new CDROutputStream ();
                os.beginEncapsulatedArray ();

                if (body10.iiop_version.minor > 0)
                {
                    is = new CDRInputStream (orb, profiles[i].profile_data);
                    is.openEncapsulatedArray ();
View Full Code Here

Examples of org.jacorb.orb.CDROutputStream.beginEncapsulatedArray()

    {
        // encapsulate context
        final CDROutputStream os = new CDROutputStream();
        try
        {
            os.beginEncapsulatedArray();
            CodeSetContextHelper.write( os, new CodeSetContext( tcs.getId(), tcsw.getId() ));

            return new ServiceContext( TAG_CODE_SETS.value, os.getBufferCopy() );
        }
        finally
View Full Code Here

Examples of org.jacorb.orb.CDROutputStream.beginEncapsulatedArray()

    {
        if (!conn.isTCSNegotiated())
        {
            // encapsulate context
            CDROutputStream os = new CDROutputStream();
            os.beginEncapsulatedArray();
            CodeSetContextHelper.write
            (
                os,
                new CodeSetContext(conn.getTCS(), conn.getTCSW())
            );
View Full Code Here

Examples of org.jacorb.orb.CDROutputStream.beginEncapsulatedArray()

    }

    private ServiceContext createInvocationPolicies()
    {
        CDROutputStream out = new CDROutputStream();
        out.beginEncapsulatedArray();
        PolicyValueSeqHelper.write(out, getTimingPolicyValues());
        return new ServiceContext (INVOCATION_POLICIES.value,
                                   out.getBufferCopy());
    }
}
View Full Code Here

Examples of org.jacorb.orb.CDROutputStream.beginEncapsulatedArray()

     * as per section 1.15.2 of the Java Mapping.
     */
    private ServiceContext createExceptionDetailMessage (String message)
    {
        CDROutputStream out = new CDROutputStream();
        out.beginEncapsulatedArray();
        out.write_wstring(message);
        return new ServiceContext (org.omg.IOP.ExceptionDetailMessage.value,
                                   out.getBufferCopy());
    }

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.