\SimplePie_Content_Type_Sniffer
Content-type sniffing
Based on the rules in http://tools.ietf.org/html/draft-abarth-mime-sniff-06
This is used since we can't always trust Content-Type headers, and is based
upon the HTML5 parsing rules.
This class can be overloaded with
Synopsis
class SimplePie_Content_Type_Sniffer
{
- // members
- public SimplePie_File $file;
- // methods
- public void __construct()
- public string get_type()
- public string text_or_binary()
- public string unknown()
- public string image()
- public string feed_or_html()
Members
public
- $file
—
SimplePie_File
File object
Methods
public
- __construct() — Create an instance of the class with the input file
- feed_or_html() — Sniff HTML
- get_type() — Get the Content-Type of the specified file
- image() — Sniff images
- text_or_binary() — Sniff text or binary
- unknown() — Sniff unknown