public function getEncoding($direction)
    {
        if (!isset($this->encoding[$direction])) {
            throw new Exception("Encoding direction invalid");
        }

        return $this->encoding[$direction];
    }
public function getEncoding($direction)
    {
        if (!isset($this->encoding[$direction])) {
            throw new Exception("Encoding direction invalid");
        }

        return $this->encoding[$direction];
    }
public function getEncoding ( $ direction ) { if ( ! isset ( $ this -> encoding [ $ direction ] ) ) { throw new Exception ( "Encoding direction invalid" ) ; } return $ this -> encoding [ $ direction ] ; }
Get decoding for CSV.

@param string $direction

@return string
@throws Exception
Get decoding for CSV .