/* */ package quicktime.io;
/* */
/* */ import quicktime.QTException;
/* */ import quicktime.QTObject;
/* */ import quicktime.QTSession;
/* */ import quicktime.std.movies.media.DataRef;
/* */ import quicktime.util.QTHandleRef;
/* */
/* */ public final class AliasHandle extends QTHandleRef
/* */ {
/* 26 */ private static boolean apriori = QTSession.apriori();
/* */ private boolean minimal;
/* */
/* */ static AliasHandle fromQTFile(QTFile paramQTFile, boolean paramBoolean)
/* */ throws QTException
/* */ {
/* 40 */ int[] arrayOfInt = { 0 };
/* 41 */ int i = QTNewAlias(paramQTFile.getFSSpec(true, 768), arrayOfInt, (byte)(paramBoolean ? 1 : 0));
/* 42 */ QTIOException.checkError(i, paramQTFile.getPath());
/* 43 */ return new AliasHandle(arrayOfInt[0], null, false, paramBoolean);
/* */ }
/* */
/* */ static AliasHandle fromTargetQTFile(QTFile paramQTFile1, QTFile paramQTFile2, boolean paramBoolean)
/* */ throws QTException
/* */ {
/* 59 */ int[] arrayOfInt = { 0 };
/* 60 */ int i = 0;
/* */
/* 62 */ if (paramQTFile1 != null) {
/* 63 */ i = NewAlias(paramQTFile1.getFSSpec(true, 768), paramQTFile2.getFSSpec(true, 768), arrayOfInt);
/* */ }
/* */ else {
/* 66 */ i = NewAlias(null, paramQTFile2.getFSSpec(true, 768), arrayOfInt);
/* */ }
/* 68 */ QTIOException.checkError(i, paramQTFile2.getPath());
/* 69 */ return new AliasHandle(arrayOfInt[0], null, false, paramBoolean);
/* */ }
/* */
/* */ public static AliasHandle fromDataRef(DataRef paramDataRef)
/* */ throws QTException
/* */ {
/* 79 */ if (paramDataRef.getType() != 1634494835) throw new QTException(-50);
/* 80 */ return new AliasHandle(QTObject.ID(paramDataRef), paramDataRef, paramDataRef.isLocked(), false);
/* */ }
/* */
/* */ public static AliasHandle fromArray(byte[] paramArrayOfByte)
/* */ throws QTException
/* */ {
/* 89 */ AliasHandle localAliasHandle = new AliasHandle(paramArrayOfByte.length, false);
/* 90 */ localAliasHandle.copyFromArray(0, paramArrayOfByte, 0, paramArrayOfByte.length);
/* 91 */ return localAliasHandle;
/* */ }
/* */
/* */ private AliasHandle(int paramInt, boolean paramBoolean) throws QTException {
/* 95 */ super(paramInt, paramBoolean);
/* */ }
/* */
/* */ private AliasHandle(int paramInt, Object paramObject, boolean paramBoolean1, boolean paramBoolean2)
/* */ {
/* 100 */ super(paramInt, paramObject, paramBoolean1);
/* 101 */ this.minimal = paramBoolean2;
/* */ }
/* */
/* */ public boolean isMinimal()
/* */ {
/* 109 */ return this.minimal;
/* */ }
/* */
/* */ public QTFile resolve()
/* */ throws QTException
/* */ {
/* 118 */ return QTFile.resolveAlias(this);
/* */ }
/* */
/* */ private static native short QTNewAlias(byte[] paramArrayOfByte, int[] paramArrayOfInt, byte paramByte);
/* */
/* */ private static native short NewAlias(byte[] paramArrayOfByte1, byte[] paramArrayOfByte2, int[] paramArrayOfInt);
/* */ }
/* Location: Z:\System\Library\Java\Extensions\QTJava.zip
* Qualified Name: quicktime.io.AliasHandle
* JD-Core Version: 0.6.2
*/