You are here

protected function FeedsExJmesPathLines::cleanUp in Feeds extensible parsers 7

Same name and namespace in other branches
  1. 7.2 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 74
Contains FeedsExJmesPathLines.

Class

FeedsExJmesPathLines
Parses JSON Lines documents with JMESPath.

Code

protected function cleanUp(FeedsSource $source, FeedsParserResult $result) {
  $source
    ->state(FEEDS_PARSE)->pointer = $this->iterator
    ->ftell();
  unset($this->iterator);
  parent::cleanUp($source, $result);
}