/**
* Couldn't find the barcode. Tell the user.
*/
System.out.println(Messages.getString("ReadBarJ.1")); //$NON-NLS-1$
} else {
ReadBarcode rb = new ReadBarcode();
rb.setRect(db.getRect());
rb.push(inimg);
if (!rb.getSuccessful()) {
/**
* Couldn't read the barcode.
*/
System.out.println(Messages.getString("ReadBarJ.2")); //$NON-NLS-1$
} else {
/**
* Read the barcode. Tell the user.
*/
System.out.println(Messages.getString("ReadBarJ.3") + rb.getCode()); //$NON-NLS-1$
}
}
} catch (Throwable t) {
System.out.println(t.getLocalizedMessage());
t.printStackTrace();