public function setEncodingFilter(InterfaceEncodingFilter $value)
    {
        $this->encodingFilter = $value;

        // initialize the encoder.
        $this->encodingFilter->init($this);
        return $this;
    }