Set the parser to use for a format
string $class The name of the class:
public function setParserClass($class) {
if ($class) {
if (!is_string($class)) {
throw new InvalidArgumentException("\$class should be a string");
}
$this->parserClass = $class;
}
else {
$this->parserClass = null;
}
}