* @param value the string describing the print order
* @return a NumericResult containing either one of the public enumeration
* values, or an appropriate IOException
*/
public static NumericResult extractPrintOrder(final String value) {
NumericResult rval = null;
String input = (value == null) ? null : value.trim();
if (input == null) {
rval = _null_result;
} else if (input.equalsIgnoreCase(_right_then_down)) {
rval = _right_then_down_result;
} else if (input.equalsIgnoreCase(_down_then_right)) {
rval = _down_then_right_result;
} else {
rval = new NumericResult(new IOException(
"\"" + input + "\" is not a valid print order"));
}
return rval;
}