本文整理汇总了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;
}
示例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));
}
示例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));
}
示例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));
}
示例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;
}
示例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;
}