公共类JVideoOCR扩展了Observable { public static final int STATUS_DOCUMENT_REMOVED = 1;
public native boolean init();
public native boolean terminate();
public native boolean startRead();
public native boolean stopRead();
static {
System.loadLibrary("JVideoOCR"); }
IOCRDataHandler dataHandler = null;
public void setOCRDataHandler(IOCRDataHandler handler)
{
dataHandler = handler;
}
public void MRZDataCallback(MRZData data)
{
if (dataHandler != null)
dataHandler.handleOCRData(data);
}
private void returnStatus(int status)
{
switch (status)
{
case STATUS_DOCUMENT_REMOVED:
setChanged() ;
notifyObservers(new Integer(2)) ;
break;
}
}
}
这段代码工作正常,将java文件转换为默认包,但是如果我将这个java文件转移到打包它不能正常工作。