validateRuleData

Validates the magic number, version, and the length of the given data.

Throws

if the end-of-data is reached while validating data

MissingResourceException

if valification failed