|
||||||||||
上一个类 下一个类 | 框架 无框架 | |||||||||
摘要: 嵌套 | 字段 | 构造函数 | 方法 | 详细信息: 字段 | 构造函数 | 方法 |
java.lang.Objectcom.foxconn.ebook.reader.engine.core.EngineCode
public class EngineCode
代碼類: 該類包含所有Engine處理時產生的异常或錯誤代碼.同時用來處理相關錯誤代碼.
代碼類型包含EngineMsgCode、AdobeMsgCode、FbreaderMsgCode
錯誤處理: 錯誤處理需要實現IErrorCall接口回調,當相應錯誤發生時,Engine將自動處理這些回調.
Example:
IErrorCall inputPdfPassword = new IErrorCall() {
@Override
public void handleError() {
showPdfInputDialog();
}
};
mIEREngine.setErrorHandler(AdobeMsgCode.STATE_ERROR_PDF_T3_NEED_PASSWORD, inputPdfPassword);
嵌套类摘要 | |
---|---|
static interface |
EngineCode.AdobeMsgCode
Adobe相關的信息碼. |
static interface |
EngineCode.EngineMsgCode
Engine相關的信息代碼,包含錯誤和异常碼 |
static interface |
EngineCode.FbreaderMsgCode
FBReader相關的信息碼. |
方法摘要 | |
---|---|
void |
free()
釋放資源. |
static EngineCode |
getInstance()
獲取EngineCode單例對象. |
int |
getLastCode()
後去最後信息碼. |
boolean |
noError(int code)
判斷信息碼是否為錯誤信息. |
void |
setLastCode(int error)
設置最後信息碼. |
从类 java.lang.Object 继承的方法 |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
方法详细信息 |
---|
public static EngineCode getInstance()
public void free()
public int getLastCode()
public void setLastCode(int error)
error
- the new last codepublic boolean noError(int code)
code
- 信息碼
|
||||||||||
上一个类 下一个类 | 框架 无框架 | |||||||||
摘要: 嵌套 | 字段 | 构造函数 | 方法 | 详细信息: 字段 | 构造函数 | 方法 |