当前位置: 首页>>代码示例>>Java>>正文


Java FREInvalidObjectException类代码示例

本文整理汇总了Java中com.adobe.fre.FREInvalidObjectException的典型用法代码示例。如果您正苦于以下问题:Java FREInvalidObjectException类的具体用法?Java FREInvalidObjectException怎么用?Java FREInvalidObjectException使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。


FREInvalidObjectException类属于com.adobe.fre包,在下文中一共展示了FREInvalidObjectException类的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: getBitmap

import com.adobe.fre.FREInvalidObjectException; //导入依赖的package包/类
/**
 * Switch color channels
 * http://stackoverflow.com/questions/17314467/bitmap-channels-order-different-in-android
 */
public static Bitmap getBitmap( FREBitmapData bitmapData ) throws FREWrongThreadException, FREInvalidObjectException {
	bitmapData.acquire();
	Bitmap bitmap = Bitmap.createBitmap( bitmapData.getWidth(), bitmapData.getHeight(), Bitmap.Config.ARGB_8888 );
	Canvas canvas = new Canvas( bitmap );
	Paint paint = new Paint();
	paint.setColorFilter( mColorFilter );
	bitmap.copyPixelsFromBuffer( bitmapData.getBits() );
	bitmapData.release();
	canvas.drawBitmap( bitmap, 0, 0, paint );
	return bitmap;
}
 
开发者ID:marpies,项目名称:face-detection-ane,代码行数:16,代码来源:BitmapDataUtils.java

示例2: FREIapItem

import com.adobe.fre.FREInvalidObjectException; //导入依赖的package包/类
public FREIapItem(String jsonData)
		throws FRETypeMismatchException, FREInvalidObjectException,
		FREASErrorException, FRENoSuchNameException,
		FREWrongThreadException, IllegalStateException, FREReadOnlyException {
	super(CLASS_NAME, null);

	setProperty("jsonData", FREObject.newObject(jsonData));
}
 
开发者ID:wastedabuser,项目名称:samsung-iap,代码行数:9,代码来源:FREIapItem.java

示例3: FREIapPurchasedItem

import com.adobe.fre.FREInvalidObjectException; //导入依赖的package包/类
public FREIapPurchasedItem(String jsonData)
		throws FRETypeMismatchException, FREInvalidObjectException,
		FREASErrorException, FRENoSuchNameException,
		FREWrongThreadException, IllegalStateException, FREReadOnlyException  {
	super(CLASS_NAME, null);
	
	setProperty("jsonData", FREObject.newObject(jsonData));
}
 
开发者ID:wastedabuser,项目名称:samsung-iap,代码行数:9,代码来源:FREIapPurchasedItem.java

示例4: FREIapPurchase

import com.adobe.fre.FREInvalidObjectException; //导入依赖的package包/类
public FREIapPurchase(String jsonData, String itemId, int statusCode, String errorString)
		throws FRETypeMismatchException, FREInvalidObjectException,
		FREASErrorException, FRENoSuchNameException,
		FREWrongThreadException, IllegalStateException, FREReadOnlyException {
	super(CLASS_NAME, null);
	
	setProperty("jsonData", FREObject.newObject(jsonData));
	setProperty("itemId", FREObject.newObject(itemId));
	setProperty("statusCode", FREObject.newObject(statusCode));
	if (errorString != null) setProperty("errorString", FREObject.newObject(errorString));
}
 
开发者ID:wastedabuser,项目名称:samsung-iap,代码行数:12,代码来源:FREIapPurchase.java

示例5: getBytes

import com.adobe.fre.FREInvalidObjectException; //导入依赖的package包/类
private byte[] getBytes(FREContext context, FREArray array) throws IllegalStateException, IllegalArgumentException, FREInvalidObjectException, FREWrongThreadException, FRETypeMismatchException {

        byte[] bytes = new byte[(int) array.getLength()];
        for (int i = 0; i < array.getLength(); i++) {
            bytes[i] = (byte) array.getObjectAt(i).getAsInt();
        }
        return bytes;
    }
 
开发者ID:alebianco,项目名称:ANE-Android-Expansion,代码行数:9,代码来源:SetMarketSecurity.java

示例6: getFiles

import com.adobe.fre.FREInvalidObjectException; //导入依赖的package包/类
private ExpansionFile[] getFiles(FREArray list, FREContext context) throws FREInvalidObjectException, FREWrongThreadException, IllegalStateException, FRETypeMismatchException, FREASErrorException, FRENoSuchNameException {

        ExpansionFile[] xapks = new ExpansionFile[(int) list.getLength()];

        for (int i = 0; i < list.getLength(); i++) {
            FREObject file = list.getObjectAt(i);

            boolean main = file.getProperty("main").getAsBool();
            int version = file.getProperty("version").getAsInt();
            long size = (long) file.getProperty("size").getAsInt();

            xapks[i] = new ExpansionFile(main, version, size);
        }

        return xapks;
    }
 
开发者ID:alebianco,项目名称:ANE-Android-Expansion,代码行数:17,代码来源:UnzipExpansionContent.java


注:本文中的com.adobe.fre.FREInvalidObjectException类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。