code: public static BlockMetadataHeader readHeader(DataInputStream in,
                                  Checksum checksumImpl) throws IOException {
      return readHeader(in.readShort(), in, checksumImpl);
    }
docs: This reads all the fields till the beginning of checksum.
  @param in
  @param checksumImpl
  @return Metadata Header
  @throws IOException