Package quicktime.std.movies.media

Source Code of quicktime.std.movies.media.DataHandler

/*    */ package quicktime.std.movies.media;
/*    */
/*    */ import quicktime.QTObject;
/*    */ import quicktime.QTSession;
/*    */ import quicktime.std.StdQTException;
/*    */ import quicktime.std.comp.Component;
/*    */
/*    */ public final class DataHandler extends Component
/*    */ {
/* 26 */   private static boolean apriori = QTSession.apriori();
/*    */
/*    */   DataHandler(int paramInt, Object paramObject)
/*    */   {
/* 34 */     super(paramInt, paramObject);
/*    */   }
/*    */
/*    */   public DataHandler(DataRef paramDataRef, int paramInt)
/*    */     throws StdQTException
/*    */   {
/* 44 */     this(allocate(paramDataRef, paramInt), null);
/*    */   }
/*    */
/*    */   private static int allocate(DataRef paramDataRef, int paramInt) throws StdQTException {
/* 48 */     int i = GetDataHandler(QTObject.ID(paramDataRef), paramDataRef.getType(), paramInt);
/* 49 */     if (i == 0)
/* 50 */       throw new StdQTException(-2012);
/* 51 */     int[] arrayOfInt = new int[1];
/* 52 */     StdQTException.checkError(OpenAComponent(i, arrayOfInt));
/* 53 */     return arrayOfInt[0];
/*    */   }
/*    */
/*    */   private static native int GetDataHandler(int paramInt1, int paramInt2, int paramInt3);
/*    */
/*    */   private static native short OpenAComponent(int paramInt, int[] paramArrayOfInt);
/*    */ }

/* Location:           Z:\System\Library\Java\Extensions\QTJava.zip
* Qualified Name:     quicktime.std.movies.media.DataHandler
* JD-Core Version:    0.6.2
*/
TOP

Related Classes of quicktime.std.movies.media.DataHandler

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.