Examples of read_any()


Examples of com.sun.star.lib.iiopbridge.Unmarshal.read_any()

        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 erjang.EInputStream.read_any()

    if (log.isLoggable(Level.FINE)) log.fine("Number of literals: "+nLiterals);
    literals = new EObject[nLiterals];
    for (int i=0; i<nLiterals; i++) {
      int lit_length = is.read4BE();
      int pos_before_lit = is.getPos();
      literals[i] = is.read_any();
      if (log.isLoggable(Level.FINE)) log.fine("- #"+i+": "+literals[i]);
      int pos_after_lit = is.getPos();
      assert(pos_after_lit == pos_before_lit + lit_length);
    }
    }
View Full Code Here

Examples of erjang.EInputStream.read_any()

  public static EObject binary_to_term(EObject arg) {
    EBinary bin;
    if ((bin=arg.testBinary()) == null) throw ERT.badarg(arg);
    EInputStream in = bin.getInputStream();
    try {
      EObject val = in.read_any();
      //System.out.println("DECODED:"+val);
      return val;
    } catch (IOException e) {
      throw new ErlangError(ERT.am_badarg, e, arg);
    }
View Full Code Here

Examples of erjang.EInputStream.read_any()

      if (options.head() == am_safe) {
        in.setSafe(true);
      }
    }
    try {
      EObject val = in.read_any();
      return val;
    } catch (ErlangError e) {
      throw new ErlangError(ERT.am_badarg, e, arg);
    } catch (IOException e) {
      throw new ErlangError(ERT.am_badarg, e, arg);
View Full Code Here

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

        try
        {
            in.setGIOPMinor( giopMinor );

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

            //not necessary, since stream is never used again
            //in.closeEncapsulation();

            return result;
View Full Code Here

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

        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

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

        throws FormatMismatch
    {
        CDRInputStream in = new CDRInputStream(orb, data);

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

        //not necessary, since stream is never used again
        //in.closeEncapsulation();

        return result;
View Full Code Here

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

        try
        {
            in.setGIOPMinor( giopMinor );

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

            //not necessary, since stream is never used again
            //in.closeEncapsulation();

            return result;
View Full Code Here

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

        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

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

    {
        CDRInputStream in = new CDRInputStream(orb, data);
        in.setGIOPMinor( giopMinor );

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

        //not necessary, since stream is never used again
        //in.closeEncapsulation();

        return result;
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.