/** Convert the buffer to an int, cache the value */ public int getInt() { if (hasIntValue) return intValue; switch (type) { case T_BYTES: intValue = byteC.getInt(); break; default: intValue = Integer.parseInt(toString()); } hasIntValue = true; return intValue; }