protected function FeedsExJmesPathLines::cleanUp in Feeds extensible parsers 7.2
Same name and namespace in other branches
- 7 src/FeedsExJmesPathLines.inc \FeedsExJmesPathLines::cleanUp()
Allows subclasses to cleanup after parsing.
Parameters
FeedsSource $source: The feed source.
FeedsParserResult $parser_result: The result of parsing.
Overrides FeedsExJmesPath::cleanUp
File
- src/
FeedsExJmesPathLines.inc, line 54 - Contains FeedsExJmesPathLines.
Class
- FeedsExJmesPathLines
- Parses JSON Lines documents with JMESPath.
Code
protected function cleanUp(FeedsSource $source, FeedsParserResult $result) {
parent::cleanUp($source, $result);
$state = $source
->state(FEEDS_PARSE);
$state->pointer = $this->iterator
->ftell();
unset($this->iterator);
}