function FileInputStream::__construct
Load a file input stream.
Parameters
string $data The file or url path to load.:
string $encoding The encoding to use for the data.:
string $debug A fprintf format to use to echo the data on stdout.:
Overrides StringInputStream::__construct
File
-
vendor/
masterminds/ html5/ src/ HTML5/ Parser/ FileInputStream.php, line 26
Class
- FileInputStream
- The FileInputStream loads a file to be parsed.
Namespace
Masterminds\HTML5\ParserCode
public function __construct($data, $encoding = 'UTF-8', $debug = '') {
// Get the contents of the file.
$content = file_get_contents($data);
parent::__construct($content, $encoding, $debug);
}