Examples of copyToArray()


Examples of org.apache.uima.cas.ArrayFS.copyToArray()

    final int destiniationSize = 10;
    FeatureStructure[] fsArray = new FeatureStructure[destiniationSize];
    String[] stringArray = new String[destiniationSize];
    // Copy to array, skipping first element
    // This must not throw an NPE, see UIMA-726
    array.copyToArray(1, fsArray, destinationOffset, array.size() - 1);
    array.copyToArray(1, stringArray, destinationOffset, array.size() - 1);
    assertTrue(fs2.equals(fsArray[destinationOffset]));
    assertTrue(fs3.equals(fsArray[destinationOffset+1]));
    assertNotNull(stringArray[destinationOffset]);
    assertNotNull(stringArray[destinationOffset+1]);
View Full Code Here

Examples of org.apache.uima.cas.ArrayFS.copyToArray()

    FeatureStructure[] fsArray = new FeatureStructure[destiniationSize];
    String[] stringArray = new String[destiniationSize];
    // Copy to array, skipping first element
    // This must not throw an NPE, see UIMA-726
    array.copyToArray(1, fsArray, destinationOffset, array.size() - 1);
    array.copyToArray(1, stringArray, destinationOffset, array.size() - 1);
    assertTrue(fs2.equals(fsArray[destinationOffset]));
    assertTrue(fs3.equals(fsArray[destinationOffset+1]));
    assertNotNull(stringArray[destinationOffset]);
    assertNotNull(stringArray[destinationOffset+1]);
    for (int i = 0; i < destinationOffset; i++) {
View Full Code Here

Examples of quicktime.util.QTHandle.copyToArray()

/*  553 */     UserData localUserData = UserData.fromTrack(this);
/*      */     try {
/*  555 */       QTHandle localQTHandle = localUserData.getData(1851878757, 1);
/*  556 */       i = localQTHandle.getSize();
/*  557 */       byte[] arrayOfByte = new byte[i];
/*  558 */       localQTHandle.copyToArray(0, arrayOfByte, 0, i);
/*  559 */       return new String(arrayOfByte);
/*      */     } catch (QTException localQTException) {
/*  561 */       int i = localQTException.errorCode();
/*  562 */       if (i != -2026)
/*  563 */         throw new StdQTException(i);
View Full Code Here

Examples of quicktime.util.RawEncodedImage.copyToArray()

       * imgPixelData[].

       */

      rawIm2.copyToArray(0, pixData, 0, pixData.length);

      int pixIndex = 0, destPixIndex = 0;

      for (int row = 0; row < height; row++)

View Full Code Here

Examples of quicktime.util.RawEncodedImage.copyToArray()

    } else

    // copy raw image to imgPixelData[] in one step

      rawIm2.copyToArray(0, imgPixelData, 0, width * height);

    }

    img.releaseWritableTile(0, 0); // release Raster access to image

View Full Code Here

Examples of quicktime.util.RawEncodedImage.copyToArray()

/*     */
/*     */   private synchronized void copyPixels()
/*     */     throws QTException
/*     */   {
/* 277 */     RawEncodedImage localRawEncodedImage = this.pm.getPixelData();
/* 278 */     localRawEncodedImage.copyToArray(0, this.pixels, 0, this.pixels.length);
/*     */   }
/*     */
/*     */   /** @deprecated */
/*     */   public synchronized void redraw(Region paramRegion)
/*     */     throws QTException
View Full Code Here

Examples of quicktime.util.RawEncodedImage.copyToArray()

/*     */
/*     */   private synchronized void copyPixels()
/*     */     throws QTException
/*     */   {
/* 281 */     RawEncodedImage localRawEncodedImage = this.pm.getPixelData();
/* 282 */     localRawEncodedImage.copyToArray(0, this.pixels, 0, this.pixels.length);
/*     */   }
/*     */
/*     */   public synchronized void redraw(Region paramRegion)
/*     */     throws QTException
/*     */   {
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.