public function getParsedContent()
    {
        $filetype = FileType::getExtension($this->content_type);

        if (empty($filetype))
            throw new ParseException("Unknown content type");

        $filename = "content." . $filetype;
        $reader = ReaderFactory::factory($filename);
        $parsed = $reader->readFileHandle($this->getContentStream());
        return new Dictionary($parsed);
    }
public function getParsedContent()
    {
        $filetype = FileType::getExtension($this->content_type);

        if (empty($filetype))
            throw new ParseException("Unknown content type");

        $filename = "content." . $filetype;
        $reader = ReaderFactory::factory($filename);
        $parsed = $reader->readFileHandle($this->getContentStream());
        return new Dictionary($parsed);
    }
public function getParsedContent ( ) { $ filetype = FileType :: getExtension ( $ this -> content_type ) ; if ( empty ( $ filetype ) ) throw new ParseException ( "Unknown content type" ) ; $ filename = "content." . $ filetype ; $ reader = ReaderFactory :: factory ( $ filename ) ; $ parsed = $ reader -> readFileHandle ( $ this -> getContentStream ( ) ) ; return new Dictionary ( $ parsed ) ; }
Return the parsed content. The FileFormats readers will be used to
parse the data and store it in a dictionary.

@return Dictionary The parsed data
Return the parsed content . The FileFormats readers will be used to parse the data and store it in a dictionary .