Lines Matching refs:filter
419 filter. There are three types of filter, identified by constants on
422 1. `Filter::READ` when the filter applies for reading operations,
423 2. `Filter::WRITE` when the filter applies for writing operations,
426 This class allows to `register` or `remove` filters. A filter takes
427 the form of a class extending the `Hoa\Stream\Filter\Basic` filter,
430 Once a filter is registered, we can apply it on a stream by using its
441 Let's implement a filter that changes the content of the stream into
442 uppercase. We start by defining out filter:
447 public function filter($in, $out, &$consumed, $closing)
467 Great. Now let's register our filter under a specific name:
474 Then, we must apply the filter on a specific stream, so let's open a
475 stream, and append the filter:
482 This filter has been applied for reading operations only. So we will
491 A filter is a low-level stream API. It integrates with all kind of
499 The `Hoa\Stream\Filter\LateComputed` class is a special filter. It
501 by extending this filter, you can override the `compute` method and
509 This is also possible to auto-apply a filter with… a wrapper! For
510 example the `instrument://` wrapper can prepend a filter to the stream