Ejemplo n.º 1
0
        /**
         * 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);
        }
Ejemplo n.º 2
0
 /**
  * Constructor
  *
  * @param s the error constant
  */
 public ErrorConstant(string s)
 {
     error = FormulaErrorCode.getErrorCode(s);
 }