/** * Reads the ptg data from the array starting at the specified position * * @param data the RPN array * @param pos the current position in the array, excluding the ptg identifier * @return the number of bytes read */ public int read(byte[] data, int pos) { int code = data[pos]; error = FormulaErrorCode.getErrorCode(code); return(1); }
/** * Constructor * * @param s the error constant */ public ErrorConstant(string s) { error = FormulaErrorCode.getErrorCode(s); }