Package org.omg.CORBA.portable

Examples of org.omg.CORBA.portable.OutputStream.write_long()


                        out.write_value ( ex,
                                javax.transaction.SystemException.class );
                        return out;
                    }
                    OutputStream out = reply.createReply ();
                    out.write_long ( result );
                    return out;
                }
            case 15:
                if ( method.equals ( "setRollbackOnly" ) ) {
                    String arg0 = (String) in.read_value ( String.class );
View Full Code Here


        if ( !Util.isLocal ( this ) ) {
            try {
                org.omg.CORBA_2_3.portable.InputStream in = null;
                try {
                    OutputStream out = _request ( "begin", true );
                    out.write_long ( arg0 );
                    in = (org.omg.CORBA_2_3.portable.InputStream) _invoke ( out );
                    return (String) in.read_value ( String.class );
                } catch ( ApplicationException ex ) {
                    in = (org.omg.CORBA_2_3.portable.InputStream) ex
                            .getInputStream ();
View Full Code Here

        OutputStream out = any.create_output_stream();
        ORB orb = (ORB)(out.orb());
        String name = ex.getClass().getName();
        String repID = ORBUtility.repositoryIdOf(name);
        out.write_string(repID);
        out.write_long(ex.minor);
        out.write_long(ex.completed.value());
        any.read_value(out.create_input_stream(),
            getSystemExceptionTypeCode(orb, repID, name));
    }
View Full Code Here

        ORB orb = (ORB)(out.orb());
        String name = ex.getClass().getName();
        String repID = ORBUtility.repositoryIdOf(name);
        out.write_string(repID);
        out.write_long(ex.minor);
        out.write_long(ex.completed.value());
        any.read_value(out.create_input_stream(),
            getSystemExceptionTypeCode(orb, repID, name));
    }

    public static SystemException extractSystemException(Any any) {
View Full Code Here

    }

    private CDRInputStream getInputStreamFromWithLong(final int i)
    {
        OutputStream out = orb.create_output_stream();
        out.write_long(i);
        CDRInputStream in = (CDRInputStream) out.create_input_stream();
        return in;
    }

    private void runTest(final int typeCodeKind)
View Full Code Here

{
    @Test
    public void testAvailable() throws Exception
    {
        OutputStream out = orb.create_output_stream();
        out.write_long(1234);
        InputStream in = out.create_input_stream();

        assertEquals(4, in.available());

        in.read_octet();
View Full Code Here

    @Test
    public void testMarshalUsingPortableApi() throws Exception
    {
        OutputStream out = orb.create_output_stream();
        out.write_long(1234);
        InputStream in = out.create_input_stream();
        byte[] data = new byte[5];
        in.read(data, 0, in.available());

        verifyDataUsingJacorbApi(data);
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.