short status = 7;
if ((status & READY) == READY) {
System.out.println(READY_STRING);
}
if ((status & PROCESSING) == PROCESSING) {
System.out.println(PROCESSING_STRING);
}
if ((status & RECOVERING) == RECOVERING) {
System.out.println(RECOVERING_STRING);
}
if ((status & ERROR) == ERROR) {
System.out.println(ERROR_STRING);
}