Examples of write_any()


Examples of com.sun.star.lib.iiopbridge.Marshal.write_any()

        {
        // any char marshaling
        Character any = new Character( 'a' );
        aM = new Marshal( false, null );
        aM.write_any( any );
        aUM = new Unmarshal( aM.getByteArray(), aM.getSize(), false, null );
        any = (Character)aUM.read_any();
        if( 'a' != any.charValue() )
            System.err.println( "error: char any marshal" );
        }
View Full Code Here

Examples of com.sun.star.lib.iiopbridge.Marshal.write_any()

        {
        // any char marshaling
        String any = new String( "a" );
        aM = new Marshal( false, null );
        aM.write_any( any );
        aUM = new Unmarshal( aM.getByteArray(), aM.getSize(), false, null );
        any = (String)aUM.read_any();
        if( !any.equals( "a") )
            System.err.println( "error: char any marshal" );
        }
View Full Code Here

Examples of com.sun.star.lib.iiopbridge.Marshal.write_any()

        {
        // any structure marshaling
        StructTest any = new StructTest( 2 );
       
        aM = new Marshal( false, null );
        aM.write_any( aS );
        aUM = new Unmarshal( aM.getByteArray(), aM.getSize(), false, null );
        any = (StructTest)aUM.read_any();
        if( !any.equals( new StructTest( 2 ) ) )
            System.err.println( "error: struct any marshal" );
        }
View Full Code Here

Examples of com.sun.star.lib.iiopbridge.Marshal.write_any()

           
        {
        // any byte marshaling
        Byte any = new Byte( (byte)1 );
        aM = new Marshal( false, null );
        aM.write_any( any );
        aUM = new Unmarshal( aM.getByteArray(), aM.getSize(), false, null );
        any = (Byte)aUM.read_any();
        if( any.byteValue() != 1 )
            System.err.println( "error: byte any marshal" );
        }
View Full Code Here

Examples of com.sun.star.lib.iiopbridge.Marshal.write_any()

        {
        // any short marshaling
        Short any = new Short( (byte)1 );
        aM = new Marshal( false, null );
        aM.write_any( any );
        aUM = new Unmarshal( aM.getByteArray(), aM.getSize(), false, null );
        any = (Short)aUM.read_any();
        if( any.shortValue() != 1 )
            System.err.println( "error: short any marshal" );
        }
View Full Code Here

Examples of erjang.EOutputStream.write_any()

  @BIF
  public static EBinary term_to_binary(EObject obj) {
    EOutputStream eos = new EOutputStream();
    eos.write(EExternal.versionTag);
    eos.write_any(obj);
    return eos.getBinaryContent();   
  }
 
  @BIF
  public static ESmall external_size(EObject obj) {
View Full Code Here

Examples of erjang.EOutputStream.write_any()

    EOutputStream eos = new EOutputStream();
    eos.write(EExternal.versionTag);
    if (compression != 0) {
      eos.write_compressed(obj, compression);
    } else {
      eos.write_any(obj);
    }
    return eos.getBinaryContent();   
  }

  @BIF
View Full Code Here

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

        try
        {
            out.setGIOPMinor( giopMinor );

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

            /*
             closing must not be done, since it will patch the
             array with a size!
             try
View Full Code Here

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

        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!

            return out.getBufferCopy();
View Full Code Here

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

        throws InvalidTypeForEncoding
    {
        CDROutputStream out = new CDROutputStream(orb);

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

        /*
          closing must not be done, since it will patch the
          array with a size!
        try
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.