Examples of fromStringArray()


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

   *
   */
  public void testStringSaveArray() {
    String sourceData[] = new String[] { "hello", "from", "java", "com" };
    SafeArray saUnderTest = new SafeArray(Variant.VariantVariant, 3);
    saUnderTest.fromStringArray(sourceData);
    String[] extractedFromSafeArray = saUnderTest.toStringArray();
    for (int i = 0; i < extractedFromSafeArray.length; i++) {
      assertEquals("" + i, sourceData[i], extractedFromSafeArray[i]);
    }
    assertEquals("single get failed: ", sourceData[2], saUnderTest
View Full Code Here

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

    System.out.println("String");
    SafeArray sa = new SafeArray(Variant.VariantString, 4);
    System.out.println("elem size:" + sa.getElemSize());
    String sack[] = new String[] { "aa", "bb", "cc", "dd" };
    printArray(sack);
    sa.fromStringArray(sack);
    sack = sa.toStringArray();
    printArray(sack);

    String s4[] = new String[4];
    sa.getStrings(0, 4, s4, 0);
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.