SetaPDF_Extractor_Strategy_AbstractStrategy Abstract class representing an extraction strategy.

File: /SetaPDF/Extractor/Strategy/AbstractStrategy.php

Class hierarchy

Summary

Properties


Methods

_accept()

protected bool SetaPDF_Extractor_Strategy_AbstractStrategy::_accept ( SetaPDF_Extractor_TextItem $textItem )

Proxy method that forwards the call to a filter instance if available.

Parameters
$textItem : SetaPDF_Extractor_TextItem
 
See

getFilter()

public null|SetaPDF_Extractor_Filter_FilterInterface SetaPDF_Extractor_Strategy_AbstractStrategy::getFilter ( void )

Get the filter.

getResult()

abstract public mixed SetaPDF_Extractor_Strategy_AbstractStrategy::getResult ( string $stream, SetaPDF_Core_Type_Dictionary $resources )

Get the strategy specific result.

Parameters
$stream : string
 
$resources : SetaPDF_Core_Type_Dictionary
 

process()

abstract public SetaPDF_Extractor_TextItem[] SetaPDF_Extractor_Strategy_AbstractStrategy::process ( string $stream, SetaPDF_Core_Type_Dictionary $resources )

Processes a stream through this strategy.

The result is an array of SetaPDF_Extractor_TextItem instances.

Parameters
$stream : string
 
$resources : SetaPDF_Core_Type_Dictionary
 

setFilter()

public void SetaPDF_Extractor_Strategy_AbstractStrategy::setFilter ( [ SetaPDF_Extractor_Filter_FilterInterface|null $filter = null ] )

Set a filter.

Parameters
$filter : SetaPDF_Extractor_Filter_FilterInterface|null