getHeaderFieldInt() and getHeaderFieldDate()
These are utility methods that read a named header and convert its value into an int and a long respectively.
public int getHeaderFieldInt(String name, int default)
public long getHeaderFieldDate(String name, long default)