public long getLongValue() { return StringUtil.toLong(_value); }
public long getLongValue() { return StringUtil.toLong(_value); }
/** * Get a header as an long value. Returns the value of an integer field or -1 if not found. The * case of the field name is ignored. * * @param name the case-insensitive field name * @exception NumberFormatException If bad long found */ public long getLongField(String name) throws NumberFormatException { HttpField field = getField(name); return field==null?-1L:StringUtil.toLong(field.getValue()); }