Examples of toVariantArray()


Examples of com.jacob.com.SafeArray.toVariantArray()

    }
    assertEquals("single get failed: ", sourceData[2], saUnderTest
        .getBoolean(2));

    // test conversion
    Variant extractedFromSafeArrayVariant[] = saUnderTest.toVariantArray();
    for (int i = 0; i < extractedFromSafeArrayVariant.length; i++) {
      assertEquals("" + i, sourceData[i],
          extractedFromSafeArrayVariant[i].getBoolean());
    }
  }
View Full Code Here

Examples of com.jacob.com.SafeArray.toVariantArray()

    }
    assertEquals("single get failed: ", sourceData[2], saUnderTest
        .getString(2));

    // test conversion
    Variant extractedFromSafeArrayVariant[] = saUnderTest.toVariantArray();
    for (int i = 0; i < extractedFromSafeArrayVariant.length; i++) {
      assertEquals("" + i, sourceData[i],
          extractedFromSafeArrayVariant[i].getString());
    }
  }
View Full Code Here

Examples of com.jacob.com.SafeArray.toVariantArray()

    Variant sourceData[] = new Variant[] { new Variant(1),
        new Variant(2.3), new Variant("hi") };

    SafeArray saUnderTest = new SafeArray(Variant.VariantVariant, 3);
    saUnderTest.fromVariantArray(sourceData);
    Variant[] extractedFromSafeArray = saUnderTest.toVariantArray();
    for (int i = 0; i < extractedFromSafeArray.length; i++) {
      assertEquals("" + i, sourceData[i].toString(),
          extractedFromSafeArray[i].toString());
    }
    assertEquals("single get failed: ", sourceData[2].toString(),
View Full Code Here

Examples of com.jacob.com.SafeArray.toVariantArray()

    System.out.println("elem size:" + va.getElemSize());
    Variant vack[] = new Variant[] { new Variant(1), new Variant(2.3),
        new Variant(true), new Variant("four"), };
    printArray(vack);
    va.fromVariantArray(vack);
    vack = va.toVariantArray();
    printArray(vack);

    Variant v4[] = new Variant[4];
    va.getVariants(0, 4, v4, 0);
    printArray(v4);
View Full Code Here

Examples of com.jacob.com.SafeArray.toVariantArray()

    va.getVariants(0, 4, v4, 0);
    printArray(v4);

    SafeArray va2 = new SafeArray(Variant.VariantVariant, 4);
    va2.setVariants(0, 4, v4, 0);
    vack = va2.toVariantArray();
    printArray(vack);

    // byte
    System.out.println("Byte");
    SafeArray bba = new SafeArray(Variant.VariantByte, 4);
View Full Code Here

Examples of com.jacob.com.SafeArray.toVariantArray()

    for (int i = 0; i < extractedFromSafeArrayDouble.length; i++) {
      assertEquals("" + i, new Double(sourceData[i]).doubleValue(),
          extractedFromSafeArrayDouble[i]);
    }
    // test conversion
    Variant extractedFromSafeArrayVariant[] = saUnderTest.toVariantArray();
    for (int i = 0; i < extractedFromSafeArrayVariant.length; i++) {
      assertEquals("" + i, sourceData[i],
          extractedFromSafeArrayVariant[i].getShort());
    }
  }
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.