Reads and validates a header previously written with #writeHeader(DataOutput, String, int).
When reading a file, supply the expected codec and an expected version range (minVersion to maxVersion).
If the first four bytes are not
/// , or if the actual codec found is
/// not codec. If the actual version is less
/// than minVersion. If the actual version is greater
/// than maxVersion. If there is an I/O error reading from the underlying medium.
publicstaticCheckHeader ( DataInput@in, stringcodec, intminVersion, intmaxVersion ) : int