PluginProbe
WCPOS – Point of Sale (POS) plugin for WooCommerce / 1.10.19
WCPOS – Point of Sale (POS) plugin for WooCommerce v1.10.19
1.10.19 1.10.18 1.10.17 1.10.16 1.10.15 1.10.13 1.10.14 1.10.12 1.10.11 1.10.10 1.10.9 1.10.8 untagged-3d9b7ccddc54df87c672 1.10.7 1.10.6 1.10.5 1.10.3 1.10.4 1.10.2 1.10.1 1.10.0 1.9.17 1.9.15 1.9.16 1.9.14 All 163 releases
woocommerce-pos / vendor_prefixed / masterminds / html5 / src / HTML5 / Parser / FileInputStream.php

FileInputStream.php in WCPOS – Point of Sale (POS) plugin for WooCommerce 1.10.19, at vendor_prefixed/masterminds/html5/src/HTML5/Parser/FileInputStream.php

33 lines 1.1 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 namespace WCPOS\Vendor\Masterminds\HTML5\Parser;
4
5 /**
6 * The FileInputStream loads a file to be parsed.
7 *
8 * So right now we read files into strings and then process the
9 * string. We chose to do this largely for the sake of expediency of
10 * development, and also because we could optimize toward processing
11 * arbitrarily large chunks of the input. But in the future, we'd
12 * really like to rewrite this class to efficiently handle lower level
13 * stream reads (and thus efficiently handle large documents).
14 *
15 * @deprecated since 2.4, to remove in 3.0. Use a string in the scanner instead.
16 */
17 class FileInputStream extends StringInputStream implements InputStream
18 {
19 /**
20 * Load a file input stream.
21 *
22 * @param string $data The file or url path to load.
23 * @param string $encoding The encoding to use for the data.
24 * @param string $debug A fprintf format to use to echo the data on stdout.
25 */
26 public function __construct($data, $encoding = 'UTF-8', $debug = '')
27 {
28 // Get the contents of the file.
29 $content = \file_get_contents($data);
30 parent::__construct($content, $encoding, $debug);
31 }
32 }
33